fix: unbroken divider between sidebar and feed
The title bar was one band across the top of the window, so the sidebar's right border only began below it and the pane read as detached from the top of the window. Each pane now reserves its own strip for the traffic lights instead. The border runs from the very top, and because both insets are the same height the sidebar header and the top bar share a baseline, so their bottom borders form one continuous line across the window. Both strips stay draggable, and the inset collapses in window fullscreen where there are no traffic lights to clear.
This commit is contained in:
@@ -21,6 +21,8 @@ interface Props {
|
||||
onView: (v: ViewMode) => void;
|
||||
sidebarHidden: boolean;
|
||||
onShowSidebar: () => void;
|
||||
/** Matches the sidebar's inset so the two headers share a baseline. */
|
||||
titleBarInset: boolean;
|
||||
}
|
||||
|
||||
/** Neutral outline until active; active is the one filled state. */
|
||||
@@ -56,7 +58,7 @@ export default function TopBar({
|
||||
search, onSearch, downloadedOnly, onDownloadedOnly, hideShorts, onHideShorts,
|
||||
online, reachable, forcedOffline, onToggleForcedOffline,
|
||||
onRefresh, refreshing, refreshProgress, resultCount, view, onView,
|
||||
sidebarHidden, onShowSidebar,
|
||||
sidebarHidden, onShowSidebar, titleBarInset,
|
||||
}: Props) {
|
||||
const pct = refreshProgress && refreshProgress.total > 0
|
||||
? (refreshProgress.done / refreshProgress.total) * 100
|
||||
@@ -67,6 +69,8 @@ export default function TopBar({
|
||||
className="sticky top-0 z-20 border-b border-slate-200 bg-white/95 backdrop-blur
|
||||
dark:border-slate-800 dark:bg-slate-900/95"
|
||||
>
|
||||
{titleBarInset && <div data-tauri-drag-region className="h-9" />}
|
||||
|
||||
<div className="flex flex-wrap items-center gap-2 px-4 py-3">
|
||||
{sidebarHidden && (
|
||||
<button
|
||||
|
||||
Reference in New Issue
Block a user