fix(ui): host name nav styled like sidebar, plain hostname column

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
PTah
2026-06-05 10:10:10 +10:00
parent 7699d8690a
commit adfc69c656
2 changed files with 26 additions and 12 deletions
+20 -6
View File
@@ -17,15 +17,29 @@ a {
color: #7eb8ff;
}
.sac-row-link {
color: #7eb8ff;
/* Клик по хосту в таблице — как пункты левого меню (полоска слева, без подчёркивания). */
.sac-host-nav-link {
display: inline-block;
padding: 0.2rem 0.45rem 0.2rem 0.3rem;
margin: -0.2rem -0.35rem;
border-radius: 4px;
border-left: 3px solid transparent;
color: #c5d0dc;
text-decoration: none;
cursor: pointer;
text-decoration: underline;
text-underline-offset: 2px;
transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.sac-row-link:hover {
color: #a8d4ff;
.sac-host-nav-link:hover {
background: #1e2d3d;
color: #fff;
border-left-color: #3db8ff;
}
.sac-host-nav-link.router-link-active {
background: #1a3a52;
color: #fff;
border-left-color: #3db8ff;
}
.layout {
+6 -6
View File
@@ -32,15 +32,15 @@
<tr v-for="h in sortedItems" :key="h.id">
<td>{{ h.id }}</td>
<td>
<RouterLink :to="`/hosts/${h.id}`" class="sac-row-link" :title="`Карточка хоста ${h.hostname}`">
<RouterLink
:to="`/hosts/${h.id}`"
class="sac-host-nav-link"
:title="`Карточка хоста ${h.hostname}`"
>
{{ h.display_name || h.hostname }}
</RouterLink>
</td>
<td>
<RouterLink :to="`/hosts/${h.id}`" class="sac-row-link" :title="`Карточка хоста ${h.hostname}`">
{{ h.hostname }}
</RouterLink>
</td>
<td>{{ h.hostname }}</td>
<td>{{ h.product_version || "—" }}</td>
<td>{{ h.os_family }}</td>
<td>{{ h.ipv4 || "—" }}</td>