workspace: Adjust spacing
Icons are always visible, so in order to not have overlays overlap with other previews, we need to consider the sum of top- and border oversizes rather than the maximum. https://gitlab.gnome.org/Teams/Design/os-mockups/-/issues/81 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1605>
This commit is contained in:
parent
56c118de87
commit
2bd91e738e
@ -464,7 +464,7 @@ var WorkspaceLayout = GObject.registerClass({
|
|||||||
const [leftOversize, rightOversize] = window.chromeWidths();
|
const [leftOversize, rightOversize] = window.chromeWidths();
|
||||||
|
|
||||||
if (rowSpacing)
|
if (rowSpacing)
|
||||||
rowSpacing += Math.max(topOversize, bottomOversize);
|
rowSpacing += topOversize + bottomOversize;
|
||||||
if (colSpacing)
|
if (colSpacing)
|
||||||
colSpacing += Math.max(leftOversize, rightOversize);
|
colSpacing += Math.max(leftOversize, rightOversize);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user