From c415fd18ad9ee630f78ec6799a66e2fa945f73de Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Wed, 3 Apr 2024 16:38:23 +0700 Subject: [PATCH] overview: fix fucked up window placement --- .../ags/modules/overview/overview_hyprland.js | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.config/ags/modules/overview/overview_hyprland.js b/.config/ags/modules/overview/overview_hyprland.js index 7a5b55c7..7dfcf584 100644 --- a/.config/ags/modules/overview/overview_hyprland.js +++ b/.config/ags/modules/overview/overview_hyprland.js @@ -128,23 +128,26 @@ export default () => { child: Widget.Box({ vertical: true, vpack: 'center', - className: 'spacing-v-5', children: [ appIcon, // TODO: Add xwayland tag instead of just having italics Widget.Revealer({ - transition: 'slide_down', + transition: 'slide_right', revealChild: revealInfoCondition, - child: Widget.Label({ - maxWidthChars: 10, // Doesn't matter what number - truncate: 'end', - className: `${xwayland ? 'txt txt-italic' : 'txt'}`, - css: ` + child: Widget.Revealer({ + transition: 'slide_down', + revealChild: revealInfoCondition, + child: Widget.Label({ + 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; margin: 0px ${Math.min(SCREEN_WIDTH, SCREEN_HEIGHT) * userOptions.overview.scale / 10}px; `, - // If the title is too short, include the class - label: (title.length <= 1 ? `${c}: ${title}` : title), + // If the title is too short, include the class + label: (title.length <= 1 ? `${c}: ${title}` : title), + }) }) }) ]