diff --git a/frontend/src/i18n/locales/en.ts b/frontend/src/i18n/locales/en.ts index 7482e018..8afec854 100644 --- a/frontend/src/i18n/locales/en.ts +++ b/frontend/src/i18n/locales/en.ts @@ -1943,6 +1943,9 @@ export default { '6h': 'Last 6 hours', '24h': 'Last 24 hours' }, + fullscreen: { + enter: 'Enter Fullscreen' + }, diagnosis: { title: 'Smart Diagnosis', footer: 'Automated diagnostic suggestions based on current metrics', diff --git a/frontend/src/i18n/locales/zh.ts b/frontend/src/i18n/locales/zh.ts index 56827a76..c3659c9a 100644 --- a/frontend/src/i18n/locales/zh.ts +++ b/frontend/src/i18n/locales/zh.ts @@ -2088,6 +2088,9 @@ export default { '6h': '近6小时', '24h': '近24小时' }, + fullscreen: { + enter: '进入全屏' + }, diagnosis: { title: '智能诊断', footer: '基于当前指标的自动诊断建议', diff --git a/frontend/src/style.css b/frontend/src/style.css index bd86ab6d..b3b492b9 100644 --- a/frontend/src/style.css +++ b/frontend/src/style.css @@ -19,7 +19,22 @@ @apply min-h-screen; } - /* 自定义滚动条 */ + /* 自定义滚动条 - 默认隐藏,悬停或滚动时显示 */ + * { + scrollbar-width: thin; + scrollbar-color: transparent transparent; + } + + *:hover, + *:focus-within { + scrollbar-color: rgba(156, 163, 175, 0.5) transparent; + } + + .dark *:hover, + .dark *:focus-within { + scrollbar-color: rgba(75, 85, 99, 0.5) transparent; + } + ::-webkit-scrollbar { @apply h-2 w-2; } @@ -29,10 +44,15 @@ } ::-webkit-scrollbar-thumb { - @apply rounded-full bg-gray-300 dark:bg-dark-600; + @apply rounded-full bg-transparent; + transition: background-color 0.2s ease; } - ::-webkit-scrollbar-thumb:hover { + *:hover::-webkit-scrollbar-thumb { + @apply bg-gray-300/50 dark:bg-dark-600/50; + } + + *:hover::-webkit-scrollbar-thumb:hover { @apply bg-gray-400 dark:bg-dark-500; } diff --git a/frontend/src/views/admin/ops/OpsDashboard.vue b/frontend/src/views/admin/ops/OpsDashboard.vue index d6452e0b..be445a32 100644 --- a/frontend/src/views/admin/ops/OpsDashboard.vue +++ b/frontend/src/views/admin/ops/OpsDashboard.vue @@ -1,6 +1,6 @@