File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,9 +10,9 @@ export type DiffPanelMode = "inline" | "sheet" | "sidebar";
1010function getDiffPanelHeaderRowClassName ( mode : DiffPanelMode ) {
1111 const shouldUseDragRegion = isElectron && mode !== "sheet" ;
1212 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" ,
1414 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)] "
1616 : "h-12 wco:max-h-[env(titlebar-area-height)]" ,
1717 ) ;
1818}
Original file line number Diff line number Diff line change 11export const RIGHT_PANEL_INLINE_LAYOUT_MEDIA_QUERY = "(max-width: 1180px)" ;
2- export const RIGHT_PANEL_SHEET_CLASS_NAME = "w-[min(88vw,820px)] max-w-[820px] p-0" ;
2+ export const RIGHT_PANEL_SHEET_CLASS_NAME =
3+ "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))]" ;
You can’t perform that action at this time.
0 commit comments