fix: make table scrollbar always visible instead of hover-only

The global CSS makes all scrollbars transparent by default (only visible
on hover). For table containers, scrollbars should always be visible so
users know the content is scrollable.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
erio
2026-03-08 02:56:34 +08:00
co-authored by Claude Opus 4.6
parent 259b9d2dbb
commit 93cd0fd4b9
2 changed files with 15 additions and 1 deletions
+1 -1
View File
@@ -1 +1 @@
0.1.93.14
0.1.93.15
+14
View File
@@ -57,6 +57,20 @@
::selection {
@apply bg-primary-500/20 text-primary-900 dark:text-primary-100;
}
/* 表格滚动容器:始终显示滚动条,不跟随全局悬停策略 */
.table-wrapper {
scrollbar-color: rgba(156, 163, 175, 0.5) transparent;
}
.dark .table-wrapper {
scrollbar-color: rgba(75, 85, 99, 0.5) transparent;
}
.table-wrapper::-webkit-scrollbar-thumb {
@apply rounded-full bg-gray-300/50;
}
.dark .table-wrapper::-webkit-scrollbar-thumb {
@apply rounded-full bg-gray-600/50;
}
}
@layer components {