Skip to content

Commit 52243f8

Browse files
committed
style: some detail
1 parent cd424a5 commit 52243f8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/main/webviewManager.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ const webviewMap = new Map<string, WebviewInfo>();
1414
* fix rect into correct size
1515
*/
1616
function fixRect(rect: Rectangle, isFullScreen: boolean): Rectangle {
17+
const xOffset = 1;
1718
const yOffset = !isFullScreen && os.platform() === 'darwin' ? 28 : 0; // add y axis offset in mac os if is not fullScreen
1819

1920
return {
20-
x: Math.round(rect.x) + 1,
21+
x: Math.round(rect.x) + xOffset,
2122
y: Math.round(rect.y) + yOffset,
22-
width: Math.round(rect.width) - 1,
23+
width: Math.round(rect.width) - xOffset,
2324
height: Math.round(rect.height),
2425
};
2526
}

src/renderer/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function Main() {
77
return (
88
<div style={{ height: '100vh', width: '100vw' }}>
99
<Allotment>
10-
<Allotment.Pane preferredSize={270} minSize={240} snap={true}>
10+
<Allotment.Pane preferredSize={270} minSize={240}>
1111
<SideTree />
1212
</Allotment.Pane>
1313

0 commit comments

Comments
 (0)