From d59b5af38c8be21910b96fd6e00e1a816e8886b4 Mon Sep 17 00:00:00 2001 From: kuekhaoyang Date: Thu, 19 Feb 2026 21:57:22 +0800 Subject: [PATCH] refactor: improve UI responsiveness in settings components and refactor scrollbar hiding class. --- app/styles/base.css | 6 +++-- components/settings/SourceSettings.tsx | 2 +- components/settings/UserDanmakuSettings.tsx | 22 ++++++++----------- .../settings/import/ImportModalTabs.tsx | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 6 files changed, 18 insertions(+), 20 deletions(-) diff --git a/app/styles/base.css b/app/styles/base.css index 1ea013b..027aa69 100644 --- a/app/styles/base.css +++ b/app/styles/base.css @@ -94,12 +94,14 @@ select:focus-visible { border-width: 0; } -.scrollbar-hide { +.scrollbar-hide, +.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; } -.scrollbar-hide::-webkit-scrollbar { +.scrollbar-hide::-webkit-scrollbar, +.no-scrollbar::-webkit-scrollbar { display: none; } diff --git a/components/settings/SourceSettings.tsx b/components/settings/SourceSettings.tsx index e0e32f6..573dbeb 100644 --- a/components/settings/SourceSettings.tsx +++ b/components/settings/SourceSettings.tsx @@ -61,7 +61,7 @@ export function SourceSettings({

视频源管理

-
+
{apis.map(api => ( -
+