Skip to content

Commit

Permalink
fix webcontentsview padding
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelmaddock committed Sep 28, 2024
1 parent 013b93f commit 4afce7f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/shell/browser/tabs.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { EventEmitter } = require('events')
const { WebContentsView } = require('electron')

const toolbarHeight = 62
const toolbarHeight = 64

class Tab {
constructor(parentWindow) {
Expand Down Expand Up @@ -63,9 +63,9 @@ class Tab {
const padding = 4;
this.view.setBounds({
x: padding,
y: toolbarHeight + padding,
y: toolbarHeight,
width: width - (padding * 2),
height: height - toolbarHeight - (padding * 2)
height: height - toolbarHeight - padding
});
this.view.setBorderRadius(8);
}
Expand Down

0 comments on commit 4afce7f

Please sign in to comment.