forked from Shinonome/dots-hyprland
overview-tasks-workspace alignment fixes (#691)
This commit is contained in:
@@ -230,9 +230,10 @@ export default (overviewMonitor = 0) => {
|
|||||||
const widget = Widget.Box({
|
const widget = Widget.Box({
|
||||||
className: 'overview-tasks-workspace',
|
className: 'overview-tasks-workspace',
|
||||||
vpack: 'center',
|
vpack: 'center',
|
||||||
|
// Rounding and adding 1px to minimum width/height to work around scaling inaccuracy:
|
||||||
css: `
|
css: `
|
||||||
min-width: ${monitors[overviewMonitor].width * userOptions.overview.scale}px;
|
min-width: ${1 + Math.round(monitors[overviewMonitor].width * userOptions.overview.scale)}px;
|
||||||
min-height: ${monitors[overviewMonitor].height * userOptions.overview.scale}px;
|
min-height: ${1 + Math.round(monitors[overviewMonitor].height * userOptions.overview.scale)}px;
|
||||||
`,
|
`,
|
||||||
children: [Widget.EventBox({
|
children: [Widget.EventBox({
|
||||||
hexpand: true,
|
hexpand: true,
|
||||||
@@ -412,6 +413,8 @@ export default (overviewMonitor = 0) => {
|
|||||||
|
|
||||||
return Widget.Revealer({
|
return Widget.Revealer({
|
||||||
revealChild: true,
|
revealChild: true,
|
||||||
|
// hpack to prevent unneeded expansion in overview-tasks-workspace:
|
||||||
|
hpack: 'center',
|
||||||
transition: 'slide_down',
|
transition: 'slide_down',
|
||||||
transitionDuration: userOptions.animations.durationLarge,
|
transitionDuration: userOptions.animations.durationLarge,
|
||||||
child: Widget.Box({
|
child: Widget.Box({
|
||||||
|
|||||||
Reference in New Issue
Block a user