feat: enhance header tab responsiveness

This commit is contained in:
Bohdan Triapitsyn
2025-12-20 14:30:08 +02:00
parent 46233aedb6
commit 64a0b80710
3 changed files with 15 additions and 3 deletions
+1 -1
View File
@@ -2847,7 +2847,7 @@ dependencies = [
[[package]]
name = "openchamber-desktop"
version = "1.2.8"
version = "1.2.9"
dependencies = [
"anyhow",
"axum",
+3 -2
View File
@@ -310,7 +310,7 @@ export const Header: React.FC = () => {
isGitTab && 'border-r',
isChatTab && !isMobile && 'min-w-[165px]'
isChatTab && !isMobile && 'min-w-[165px] max-[1024px]:min-w-0'
)}
style={{
...(isActive && isChatTab && isSidebarOpen ? {
@@ -319,6 +319,7 @@ export const Header: React.FC = () => {
} : {}),
...((isChatTab && !(isDesktopApp && isMacPlatform && isSidebarOpen)) || isGitTab ? { borderColor: 'var(--interactive-border)' } : {}),
}}
aria-label={tab.label}
aria-selected={isActive}
role="tab"
>
@@ -327,7 +328,7 @@ export const Header: React.FC = () => {
) : (
<>
<Icon size={16} />
<span>{tab.label}</span>
<span className="header-tab-label">{tab.label}</span>
</>
)}
{}
+11
View File
@@ -884,6 +884,17 @@ html:not(.dark) .chat-scroll {
}
}
/* Header tab responsiveness */
:root:not(.mobile-pointer):not(.vscode-runtime) .header-tab-label {
display: inline;
}
@media (max-width: 820px) {
:root:not(.mobile-pointer):not(.vscode-runtime) .header-tab-label {
display: none;
}
}
/* Mobile Adaptations - All Devices */
/* Set global device type variables */