From 11c7de3568c415366bfba1f607d5ed4a5fcb2961 Mon Sep 17 00:00:00 2001 From: aits2026 Date: Tue, 10 Mar 2026 13:43:24 +0800 Subject: [PATCH] fix: unify collapsed account menu width --- src/components/Sidebar.scss | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Sidebar.scss b/src/components/Sidebar.scss index 1774e75..810815b 100644 --- a/src/components/Sidebar.scss +++ b/src/components/Sidebar.scss @@ -43,13 +43,15 @@ .sidebar-user-card-wrap { position: relative; margin: 0 12px 10px; + --sidebar-user-menu-width: 172px; } .sidebar-user-menu { position: absolute; left: 0; - right: 0; + right: auto; bottom: calc(100% + 8px); + width: max(100%, var(--sidebar-user-menu-width)); z-index: 12; border: 1px solid var(--border-color); border-radius: 12px;