style: optimize scrollbar styles and limit table heights with sticky headers

This commit is contained in:
jocayn
2026-06-13 17:44:07 +08:00
parent 8ffb56d0ad
commit 7d561e0c6b
2 changed files with 47 additions and 0 deletions
+24
View File
@@ -28,6 +28,24 @@
box-sizing: border-box;
margin: 0;
padding: 0;
scrollbar-width: thin;
scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}
/* Custom Scrollbar Styles */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.12);
border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--accent-purple);
}
body {
@@ -312,6 +330,8 @@
/* Proxy Nodes view */
.table-container {
max-height: 480px;
overflow-y: auto;
overflow-x: auto;
}
@@ -322,6 +342,10 @@
}
th {
position: sticky;
top: 0;
background: #0f1523; /* solid dark background matching blended card color */
z-index: 10;
padding: 1rem;
color: var(--text-secondary);
font-weight: 600;
+23
View File
@@ -19,6 +19,24 @@
* {
box-sizing: border-box;
scrollbar-width: thin;
scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}
/* Custom Scrollbar Styles */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: rgba(0, 0, 0, 0.12);
border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--primary);
}
[hidden] {
@@ -164,6 +182,8 @@
}
.table-wrap {
max-height: 480px;
overflow-y: auto;
overflow-x: auto;
}
@@ -182,7 +202,10 @@
}
th {
position: sticky;
top: 0;
background: #f8fafc;
z-index: 10;
color: #475569;
font-size: 0.78rem;
font-weight: 750;