Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions apps/desktop/src/renderer/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3218,6 +3218,8 @@ export function App() {
}}
onOpenLogsDirectory={openLogsDirectory}
tabBarProps={tabBarProps}
isResizingSidebar={isResizingSidebar}
onResizeStart={() => setIsResizingSidebar(true)}
/>
</div>
</main>
Expand Down
12 changes: 11 additions & 1 deletion apps/desktop/src/renderer/features/workspace/HomeWorkspace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ export function HomeWorkspace({
onSetTheme,
onSetLocale,
onOpenLogsDirectory,
tabBarProps
tabBarProps,
isResizingSidebar,
onResizeStart
}: {
profiles: ConnectionProfile[]
folders?: ConnectionFolder[]
Expand All @@ -60,6 +62,8 @@ export function HomeWorkspace({
onSetLocale(value: 'zhCN' | 'enUS'): void
onOpenLogsDirectory(): void
tabBarProps: any
isResizingSidebar: boolean
onResizeStart(): void
}) {
const [activeTab, setActiveTab] = useState<'overview' | 'quick-links' | 'command-manager' | 'connection-manager' | 'settings'>('overview')
const [navDirection, setNavDirection] = useState<'down' | 'up'>('down')
Expand Down Expand Up @@ -170,6 +174,12 @@ export function HomeWorkspace({
<span>GitHub</span>
</button>
</div>
<div
aria-label={t.resizeSidebar}
className={`sidebar-resizer ${isResizingSidebar ? 'is-active' : ''}`}
onMouseDown={onResizeStart}
role="separator"
/>
</aside>

{/* Main Content Area */}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ export function WorkspaceStage({
onSetTheme,
onSetLocale,
onOpenLogsDirectory,
tabBarProps
tabBarProps,
isResizingSidebar,
onResizeStart
}: {
activeLocalTab: ActiveLocalTab
activeHomeTabId: string | null
Expand Down Expand Up @@ -156,6 +158,8 @@ export function WorkspaceStage({
onSetLocale(value: 'zhCN' | 'enUS'): void
onOpenLogsDirectory(): void
tabBarProps: any
isResizingSidebar: boolean
onResizeStart(): void
}) {
if (activeLocalTab?.kind === 'system') {
return <SystemInfoWorkspace activeProfile={activeProfile} activeSession={activeSession} />
Expand Down Expand Up @@ -237,6 +241,8 @@ export function WorkspaceStage({
onOpenLogsDirectory={onOpenLogsDirectory}
profiles={profiles}
tabBarProps={tabBarProps}
isResizingSidebar={isResizingSidebar}
onResizeStart={onResizeStart}
/>
)
}
3 changes: 2 additions & 1 deletion apps/desktop/src/renderer/styles/features/home.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

/* Sidebar Styling */
.home-sidebar {
position: relative;
width: var(--sidebar-width, 214px);
height: 100%;
background-color: var(--bg-sidebar);
Expand Down Expand Up @@ -728,5 +729,5 @@
}

.home-tabs-bar .fs-tabs {
padding-left: calc(var(--brand-width, 214px) - var(--sidebar-width, 214px)) !important;
padding-left: 0 !important;
}
Loading