Skip to content

Commit

Permalink
overview-tasks-workspace alignment fixes (end-4#691)
Browse files Browse the repository at this point in the history
  • Loading branch information
end-4 authored Aug 10, 2024
2 parents 4dd37ed + e15ec05 commit b5ab533
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .config/ags/modules/overview/overview_hyprland.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,10 @@ export default (overviewMonitor = 0) => {
const widget = Widget.Box({
className: 'overview-tasks-workspace',
vpack: 'center',
// Rounding and adding 1px to minimum width/height to work around scaling inaccuracy:
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,
Expand Down Expand Up @@ -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({
Expand Down

0 comments on commit b5ab533

Please sign in to comment.