|
|
@@ -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" />
|