| ... | @@ -10,9 +10,9 @@ export type DiffPanelMode = "inline" | "sheet" | "sidebar"; | ... | @@ -10,9 +10,9 @@ export type DiffPanelMode = "inline" | "sheet" | "sidebar"; |
| 10 | function getDiffPanelHeaderRowClassName(mode: DiffPanelMode) { | 10 | function getDiffPanelHeaderRowClassName(mode: DiffPanelMode) { |
| 11 | const shouldUseDragRegion = isElectron && mode !== "sheet"; | 11 | const shouldUseDragRegion = isElectron && mode !== "sheet"; |
| 12 | return cn( | 12 | return cn( |
| 13 | "flex items-center justify-between gap-2 px-4 wco:pr-[calc(100vw-env(titlebar-area-width)-env(titlebar-area-x)+1em)]", | 13 | "flex items-center justify-between gap-2 px-4", |
| 14 | shouldUseDragRegion | 14 | shouldUseDragRegion |
| 15 | ? "drag-region h-[52px] border-b border-border wco:h-[env(titlebar-area-height)]" | 15 | ? "drag-region h-[52px] border-b border-border wco:h-[env(titlebar-area-height)] wco:pr-[calc(100vw-env(titlebar-area-width)-env(titlebar-area-x)+1em)]" |
| 16 | : "h-12 wco:max-h-[env(titlebar-area-height)]", | 16 | : "h-12 wco:max-h-[env(titlebar-area-height)]", |
| 17 | ); | 17 | ); |
| 18 | } | 18 | } |