From 3337f4c81d467fbfdf63cf64cb755f34a293e5f9 Mon Sep 17 00:00:00 2001 From: zqy <15572837359@163.com> Date: Tue, 9 Jun 2026 15:47:33 +0800 Subject: [PATCH] fix(desktop): cap model switcher list height to prevent viewport overflow Add max-height (50vh) and overflow-y: auto to the portal model menu so it scrolls when there are too many models instead of overflowing the screen. Fixes #3629 Co-Authored-By: Claude Opus 4.7 --- desktop/frontend/src/styles.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/desktop/frontend/src/styles.css b/desktop/frontend/src/styles.css index 714665af9..8f55e2740 100644 --- a/desktop/frontend/src/styles.css +++ b/desktop/frontend/src/styles.css @@ -3014,6 +3014,8 @@ a[href] { top: auto; bottom: auto; z-index: var(--z-popover); + max-height: min(calc(100vh - 16px), 50vh); + overflow-y: auto; } .modelsw__item { display: flex;