fix: Change right panel sheet to be below title bar / action bar (#2224)

Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
CraigandJulius Marminge authored and GitHub committed 2026-04-19 23:25:39 -07:00
1 parent 306ec4bb84
commit 6d1505c9fb
2 files changed
+4 -3

No files matched your search

+2 -2
View File
@@ -10,9 +10,9 @@ export type DiffPanelMode = "inline" | "sheet" | "sidebar";
function getDiffPanelHeaderRowClassName(mode: DiffPanelMode) {
const shouldUseDragRegion = isElectron && mode !== "sheet";
return cn(
"flex items-center justify-between gap-2 px-4 wco:pr-[calc(100vw-env(titlebar-area-width)-env(titlebar-area-x)+1em)]",
"flex items-center justify-between gap-2 px-4",
shouldUseDragRegion
? "drag-region h-[52px] border-b border-border wco:h-[env(titlebar-area-height)]"
? "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)]"
: "h-12 wco:max-h-[env(titlebar-area-height)]",
);
}
+2 -1
View File
@@ -1,2 +1,3 @@
export const RIGHT_PANEL_INLINE_LAYOUT_MEDIA_QUERY = "(max-width: 1180px)";
export const RIGHT_PANEL_SHEET_CLASS_NAME = "w-[min(88vw,820px)] max-w-[820px] p-0";
export const RIGHT_PANEL_SHEET_CLASS_NAME =
"w-[min(88vw,820px)] max-w-[820px] p-0 wco:mt-[env(titlebar-area-height)] wco:h-[calc(100%-env(titlebar-area-height))] wco:max-h-[calc(100%-env(titlebar-area-height))]";