fix(settings): move content padding inside scroll areas to keep inner borders visible

The settings shell wrapped children in an outer section with p-3/p-4 padding.
With OverlayScrollbars replacing native scroll, the overlay scrollbar sat at
the viewport's right edge and covered the right border of inner cards.

Drop the outer padding (and the now-redundant overflow-auto) from the shell
and apply p-3 md:p-4 inside each settings page instead, so the scrollbar
aligns with the column edge while inner sections stay within the padded area.
This commit is contained in:
xintaofei
2026-04-19 08:45:57 +08:00
parent b2ca2c2eb1
commit eeeee2141c
12 changed files with 13 additions and 18 deletions

View File

@@ -236,12 +236,7 @@ export function SettingsShell({ children }: SettingsShellProps) {
</Sheet>
)}
<section
className={cn(
"flex-1 min-w-0 min-h-0 overflow-auto",
isMobile ? "p-3" : "p-4"
)}
>
<section className="flex-1 min-w-0 min-h-0 overflow-hidden">
{children}
</section>
</div>