diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js index c4b3d8252..fb9eafb0a 100644 --- a/js/ui/workspacesView.js +++ b/js/ui/workspacesView.js @@ -228,8 +228,10 @@ class WorkspacesView extends WorkspacesViewBase { } const spacing = (availableSpace - workspaceSize * 0.05) * (1 - fitMode); + const { scaleFactor } = St.ThemeContext.get_for_stage(global.stage); - return Math.clamp(spacing, WORKSPACE_MIN_SPACING, WORKSPACE_MAX_SPACING); + return Math.clamp(spacing, WORKSPACE_MIN_SPACING * scaleFactor, + WORKSPACE_MAX_SPACING * scaleFactor); } _getWorkspaceModeForOverviewState(state) {