revert: roll back PR #406 (linux-titlebar-draggable)

Reverts merge f7623154 which built macOS support on top of the variant
rendering infrastructure introduced by titlebar-mode-selector. With the
variant system gone (previous revert), PR #406's changes (class:macos,
stripped strip with traffic-light reservation, macOS-aware drag bands)
reference dead architecture.

Most of PR #406 was already removed by the previous revert via file
checkouts; this commit cleans up the residual macOS-specific cosmetics
in Sidebar.svelte and +page.svelte (padding-top 36→32, drag-region
height 32→28, macos main-content padding restored to generic rule).

PR #407 (sticky home header fix, ac627d43) is preserved — independent
from titlebar work, only touches HomeView.svelte.

cc
This commit is contained in:
vicrodh committed 2026-05-09 17:49:07 -06:00
1 parent e3bdbc9ab4
commit ee54c49aef
2 files changed
+9 -15

No files matched your search

+7 -12
View File
@@ -5755,11 +5755,7 @@
class:match-chrome={matchSystemChrome && showTitleBar && windowTransparent}
style="--chrome-radius: {chromeRadiusPx}px;"
>
<!-- macOS: when the user hides the qbz strip (mode='hidden'), the OS
still draws traffic lights via TitleBarStyle::Overlay on top of
the sidebar. This invisible band gives the window something to
drag and reserves the same vertical real estate the strip would
have. -->
<!-- macOS: drag region for window movement (overlay title bar has no native drag area) -->
{#if !showTitleBar && platform === 'macos'}
<div class="macos-drag-region" data-tauri-drag-region></div>
{/if}
@@ -7204,21 +7200,20 @@
height: calc(100vh - var(--player-bar-height, 104px));
}
/* macOS hidden mode: pad main content to clear native overlay traffic
lights. Only fires when the qbz strip isn't mounted. */
:global(html.macos) .app.no-titlebar .main-content {
/* macOS: pad main content to clear native overlay title bar */
:global(html.macos) .main-content {
padding-top: 16px;
height: calc(100vh - 104px - 16px);
}
:global(html.macos) .app.no-titlebar .main-content :global(.home-view) {
/* macOS: home view handles its own spacing */
:global(html.macos) .main-content :global(.home-view) {
margin-top: -16px;
}
/* macOS hidden mode: invisible drag region for window movement, mirrors
the band the qbz strip would otherwise occupy. */
/* macOS: invisible drag region for window movement (overlay title bar) */
:global(html.macos) .macos-drag-region {
height: 32px;
height: 28px;
width: 100%;
position: absolute;
top: 0;