From 13b2850841c7bc32699054c7e10a8d6275ff880b Mon Sep 17 00:00:00 2001 From: kain Date: Sun, 14 Jul 2024 09:31:32 -0400 Subject: [PATCH 1/2] Fixes for overview-tasks-workspace layout --- .config/ags/modules/overview/overview_hyprland.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.config/ags/modules/overview/overview_hyprland.js b/.config/ags/modules/overview/overview_hyprland.js index 9b5b75482..06ec1d600 100644 --- a/.config/ags/modules/overview/overview_hyprland.js +++ b/.config/ags/modules/overview/overview_hyprland.js @@ -230,9 +230,10 @@ export default (overviewMonitor = 0) => { const widget = Widget.Box({ className: 'overview-tasks-workspace', vpack: 'center', + // Adding 1px to minimum width/height to accomodate 1px padding space for contents: css: ` - min-width: ${monitors[overviewMonitor].width * userOptions.overview.scale}px; - min-height: ${monitors[overviewMonitor].height * userOptions.overview.scale}px; + min-width: ${1 + Math.round(monitors[overviewMonitor].width * userOptions.overview.scale)}px; + min-height: ${1 + Math.round(monitors[overviewMonitor].height * userOptions.overview.scale)}px; `, children: [Widget.EventBox({ hexpand: true, @@ -412,6 +413,8 @@ export default (overviewMonitor = 0) => { return Widget.Revealer({ revealChild: true, + // hpack to prevent unneeded expansion in overview-tasks-workspace: + hpack: 'center', transition: 'slide_down', transitionDuration: userOptions.animations.durationLarge, child: Widget.Box({ From e15ec050b853ef532519695fff95e6aaf95d6287 Mon Sep 17 00:00:00 2001 From: kain Date: Sun, 14 Jul 2024 12:10:18 -0400 Subject: [PATCH 2/2] Comment accuracy improvement --- .config/ags/modules/overview/overview_hyprland.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/ags/modules/overview/overview_hyprland.js b/.config/ags/modules/overview/overview_hyprland.js index 06ec1d600..e9eab4269 100644 --- a/.config/ags/modules/overview/overview_hyprland.js +++ b/.config/ags/modules/overview/overview_hyprland.js @@ -230,7 +230,7 @@ export default (overviewMonitor = 0) => { const widget = Widget.Box({ className: 'overview-tasks-workspace', vpack: 'center', - // Adding 1px to minimum width/height to accomodate 1px padding space for contents: + // Rounding and adding 1px to minimum width/height to work around scaling inaccuracy: css: ` min-width: ${1 + Math.round(monitors[overviewMonitor].width * userOptions.overview.scale)}px; min-height: ${1 + Math.round(monitors[overviewMonitor].height * userOptions.overview.scale)}px;