overview: fix fucked up window placement

This commit is contained in:
end-4
2024-04-03 16:38:23 +07:00
parent 13ab541fcb
commit 5a4422a004
@@ -128,23 +128,26 @@ export default () => {
child: Widget.Box({ child: Widget.Box({
vertical: true, vertical: true,
vpack: 'center', vpack: 'center',
className: 'spacing-v-5',
children: [ children: [
appIcon, appIcon,
// TODO: Add xwayland tag instead of just having italics // TODO: Add xwayland tag instead of just having italics
Widget.Revealer({ Widget.Revealer({
transition: 'slide_down', transition: 'slide_right',
revealChild: revealInfoCondition, revealChild: revealInfoCondition,
child: Widget.Label({ child: Widget.Revealer({
maxWidthChars: 10, // Doesn't matter what number transition: 'slide_down',
truncate: 'end', revealChild: revealInfoCondition,
className: `${xwayland ? 'txt txt-italic' : 'txt'}`, child: Widget.Label({
css: ` maxWidthChars: 10, // Doesn't matter what number
truncate: 'end',
className: `margin-top-5 ${xwayland ? 'txt txt-italic' : 'txt'}`,
css: `
font-size: ${Math.min(SCREEN_WIDTH, SCREEN_HEIGHT) * userOptions.overview.scale / 14.6}px; font-size: ${Math.min(SCREEN_WIDTH, SCREEN_HEIGHT) * userOptions.overview.scale / 14.6}px;
margin: 0px ${Math.min(SCREEN_WIDTH, SCREEN_HEIGHT) * userOptions.overview.scale / 10}px; margin: 0px ${Math.min(SCREEN_WIDTH, SCREEN_HEIGHT) * userOptions.overview.scale / 10}px;
`, `,
// If the title is too short, include the class // If the title is too short, include the class
label: (title.length <= 1 ? `${c}: ${title}` : title), label: (title.length <= 1 ? `${c}: ${title}` : title),
})
}) })
}) })
] ]