Skip to content

Commit

Permalink
remove menuMargin from windowsMargin (#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
gwenandres authored Feb 29, 2024
1 parent e5b8d5e commit b3f9f90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reducers/windows.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ export default function windows(state = defaultState, action) {
}
const splitWindows = Object.values(newSplitScreen);
const windowMargins = {
right: splitWindows.filter(entry => entry.side === 'right').reduce((res, e) => Math.max(e.size, res), 0) + state.menuMargins.right,
right: splitWindows.filter(entry => entry.side === 'right').reduce((res, e) => Math.max(e.size, res), 0),
bottom: splitWindows.filter(entry => entry.side === 'bottom').reduce((res, e) => Math.max(e.size, res), 0),
left: splitWindows.filter(entry => entry.side === 'left').reduce((res, e) => Math.max(e.size, res), 0) + state.menuMargins.left,
left: splitWindows.filter(entry => entry.side === 'left').reduce((res, e) => Math.max(e.size, res), 0),
top: splitWindows.filter(entry => entry.side === 'top').reduce((res, e) => Math.max(e.size, res), 0)
};
return {
Expand Down

0 comments on commit b3f9f90

Please sign in to comment.