fix(ui): enable scrolling on language menu for all device types

This commit is contained in:
felixfon 2026-03-20 20:40:23 +08:00
parent d8be45bc33
commit 1fb6fcef01
No known key found for this signature in database
GPG Key ID: 036EB6F5E8E50E6E

View File

@ -500,13 +500,7 @@ export default function GeneralSettings({ className }: GeneralSettingsProps) {
<span>{t("menu.languages")}</span> <span>{t("menu.languages")}</span>
</SubItemTrigger> </SubItemTrigger>
<Portal> <Portal>
<SubItemContent <SubItemContent className="scrollbar-container max-h-[75dvh] w-[92%] overflow-y-scroll rounded-lg md:rounded-2xl">
className={
isDesktop
? ""
: "scrollbar-container max-h-[75dvh] w-[92%] overflow-y-scroll rounded-lg md:rounded-2xl"
}
>
{!isDesktop && ( {!isDesktop && (
<> <>
<DialogTitle className="sr-only"> <DialogTitle className="sr-only">