fix: 修复设置页滚动和 HID 继电器识别 #252

This commit is contained in:
mofeng-git
2026-05-19 22:17:50 +08:00
parent da05656a89
commit 1f7cfb373c
2 changed files with 15 additions and 4 deletions

View File

@@ -2267,8 +2267,8 @@ watch(isWindows, () => {
<span class="sr-only">{{ t('common.menu') }}</span>
</Button>
</SheetTrigger>
<SheetContent side="left" class="w-72 p-0">
<div class="p-4 sm:p-6">
<SheetContent side="left" class="w-72 p-0 overflow-y-auto">
<div class="min-h-full p-4 sm:p-6">
<h2 class="text-lg font-semibold mb-4">{{ t('settings.title') }}</h2>
<nav class="space-y-6">
<div v-for="group in navGroups" :key="group.title" class="space-y-1">
@@ -2301,8 +2301,8 @@ watch(isWindows, () => {
</div>
<!-- Desktop Sidebar -->
<aside class="hidden lg:block w-64 shrink-0 border-r bg-muted/30">
<div class="sticky top-0 p-6 space-y-6 max-h-screen overflow-y-auto">
<aside class="hidden lg:block w-64 shrink-0 border-r bg-muted/30 overflow-hidden">
<div class="h-full p-6 space-y-6 overflow-y-auto">
<div class="space-y-1">
<h1 class="text-xl font-semibold tracking-tight">{{ t('settings.title') }}</h1>
<p class="text-xs text-muted-foreground">{{ t('settings.sidebarSubtitle') }}</p>