diff options
| author | Filip <[email protected]> | 2026-02-03 01:20:05 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-02-02 18:20:05 -0600 |
| commit | 96fbc309450c00c02c76bc4fe2e3c4524d31cb90 (patch) | |
| tree | 6bae8e1d3a79152eee65008a92cc023dc4c5a760 /packages/app/src/components | |
| parent | ba545ba9b301b29ea54e9e4e7cb9b8584a952dd8 (diff) | |
| download | opencode-96fbc309450c00c02c76bc4fe2e3c4524d31cb90.tar.gz opencode-96fbc309450c00c02c76bc4fe2e3c4524d31cb90.zip | |
fix(app): drag region for native controls (#11854)
Diffstat (limited to 'packages/app/src/components')
| -rw-r--r-- | packages/app/src/components/titlebar.tsx | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/packages/app/src/components/titlebar.tsx b/packages/app/src/components/titlebar.tsx index affb68541..86b4fbeb1 100644 --- a/packages/app/src/components/titlebar.tsx +++ b/packages/app/src/components/titlebar.tsx @@ -137,7 +137,6 @@ export function Titlebar() { <header class="h-10 shrink-0 bg-background-base relative grid grid-cols-[auto_minmax(0,1fr)_auto] items-center" style={{ "min-height": minHeight() }} - data-tauri-drag-region > <div classList={{ @@ -145,10 +144,9 @@ export function Titlebar() { "pl-2": !mac(), }} onMouseDown={drag} - data-tauri-drag-region > <Show when={mac()}> - <div class="h-full shrink-0" style={{ width: `${72 / zoom()}px` }} data-tauri-drag-region /> + <div class="h-full shrink-0" style={{ width: `${72 / zoom()}px` }} /> <div class="xl:hidden w-10 shrink-0 flex items-center justify-center"> <IconButton icon="menu" @@ -222,13 +220,10 @@ export function Titlebar() { </Tooltip> </div> </div> - <div id="opencode-titlebar-left" class="flex items-center gap-3 min-w-0 px-2" data-tauri-drag-region /> + <div id="opencode-titlebar-left" class="flex items-center gap-3 min-w-0 px-2" /> </div> - <div - class="min-w-0 flex items-center justify-center pointer-events-none lg:absolute lg:inset-0 lg:flex lg:items-center lg:justify-center" - data-tauri-drag-region - > + <div class="min-w-0 flex items-center justify-center pointer-events-none lg:absolute lg:inset-0 lg:flex lg:items-center lg:justify-center"> <div id="opencode-titlebar-center" class="pointer-events-auto w-full min-w-0 flex justify-center lg:w-fit" /> </div> @@ -238,9 +233,8 @@ export function Titlebar() { "pr-6": !windows(), }} onMouseDown={drag} - data-tauri-drag-region > - <div id="opencode-titlebar-right" class="flex items-center gap-3 shrink-0 justify-end" data-tauri-drag-region /> + <div id="opencode-titlebar-right" class="flex items-center gap-3 shrink-0 justify-end" /> <Show when={windows()}> <div class="w-6 shrink-0" /> <div data-tauri-decorum-tb class="flex flex-row" /> |
