fix(ui): host name nav styled like sidebar, plain hostname column
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+20
-6
@@ -17,15 +17,29 @@ a {
|
|||||||
color: #7eb8ff;
|
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;
|
cursor: pointer;
|
||||||
text-decoration: underline;
|
transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
|
||||||
text-underline-offset: 2px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.sac-row-link:hover {
|
.sac-host-nav-link:hover {
|
||||||
color: #a8d4ff;
|
background: #1e2d3d;
|
||||||
|
color: #fff;
|
||||||
|
border-left-color: #3db8ff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sac-host-nav-link.router-link-active {
|
||||||
|
background: #1a3a52;
|
||||||
|
color: #fff;
|
||||||
|
border-left-color: #3db8ff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.layout {
|
.layout {
|
||||||
|
|||||||
@@ -32,15 +32,15 @@
|
|||||||
<tr v-for="h in sortedItems" :key="h.id">
|
<tr v-for="h in sortedItems" :key="h.id">
|
||||||
<td>{{ h.id }}</td>
|
<td>{{ h.id }}</td>
|
||||||
<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 }}
|
{{ h.display_name || h.hostname }}
|
||||||
</RouterLink>
|
</RouterLink>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>{{ h.hostname }}</td>
|
||||||
<RouterLink :to="`/hosts/${h.id}`" class="sac-row-link" :title="`Карточка хоста ${h.hostname}`">
|
|
||||||
{{ h.hostname }}
|
|
||||||
</RouterLink>
|
|
||||||
</td>
|
|
||||||
<td>{{ h.product_version || "—" }}</td>
|
<td>{{ h.product_version || "—" }}</td>
|
||||||
<td>{{ h.os_family }}</td>
|
<td>{{ h.os_family }}</td>
|
||||||
<td>{{ h.ipv4 || "—" }}</td>
|
<td>{{ h.ipv4 || "—" }}</td>
|
||||||
|
|||||||
Reference in New Issue
Block a user