From b3f9f90a38616b012f68135a4ebf0ac406b1713f Mon Sep 17 00:00:00 2001 From: gwenandres Date: Thu, 29 Feb 2024 12:30:33 +0100 Subject: [PATCH] remove menuMargin from windowsMargin (#318) --- reducers/windows.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reducers/windows.js b/reducers/windows.js index c4b04b978..61b6addf9 100644 --- a/reducers/windows.js +++ b/reducers/windows.js @@ -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 {