From a334ea336ac1d71e73f0095e72e60d37b786c7f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E7=94=B5=E8=8A=BD=E8=A1=A3?= Date: Thu, 21 May 2026 20:54:12 -0400 Subject: [PATCH] Scope sidebar collapse media query to primary sidebar only The narrow-viewport collapse rule was hiding nav-item labels everywhere, including the chat channel list, settings sub-nav, and files tree. The collapse is only meant for the primary aside; scope the selectors so secondary panes keep their labels at narrow widths. --- AgentCompany-New/src/renderer/src/styles.css | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/AgentCompany-New/src/renderer/src/styles.css b/AgentCompany-New/src/renderer/src/styles.css index f70ca942..f27ebcef 100644 --- a/AgentCompany-New/src/renderer/src/styles.css +++ b/AgentCompany-New/src/renderer/src/styles.css @@ -486,12 +486,12 @@ textarea.input { min-height: 84px; resize: vertical; line-height: 1.5; } } @media (max-width: 980px) { .sidebar { width: 64px; } - .brand-name, - .nav-item span:not(.nav-badge), + .sidebar .brand-name, + .sidebar .nav-item span:not(.nav-badge), .sidebar-foot-name, - .search-bar > span:not(.search-kbd) { display: none; } - .search-bar { justify-content: center; padding: 6px; } - .search-kbd { display: none; } + .sidebar .search-bar > span:not(.search-kbd) { display: none; } + .sidebar .search-bar { justify-content: center; padding: 6px; } + .sidebar .search-kbd { display: none; } .content { padding: 20px 18px 32px; } .secondary-pane { width: 180px; } .onboarding-shell { grid-template-columns: 1fr; }