From b03a48421cf15a06a11496aa5556fa118d3ab8b6 Mon Sep 17 00:00:00 2001 From: Toshimichi0915 Date: Fri, 17 Jan 2025 16:31:22 +0900 Subject: [PATCH] Fix font-size consistency --- .config/ags/modules/overview/overview_hyprland.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/ags/modules/overview/overview_hyprland.js b/.config/ags/modules/overview/overview_hyprland.js index 0ce07d146..77d3bb3ca 100644 --- a/.config/ags/modules/overview/overview_hyprland.js +++ b/.config/ags/modules/overview/overview_hyprland.js @@ -152,10 +152,10 @@ export default () => { maxWidthChars: 1, // Doesn't matter what number truncate: 'end', className: `margin-top-5 ${xwayland ? 'txt txt-italic' : 'txt'}`, - css: ` + css: overviewMonitor.bind().as(monitor => ` font-size: ${Math.min(monitors[monitor].width, monitors[monitor].height) * userOptions.overview.scale / 14.6}px; margin: 0px ${Math.min(monitors[monitor].width, monitors[monitor].height) * userOptions.overview.scale / 10}px; - `, + `), // If the title is too short, include the class label: (title.length <= 1 ? `${c}: ${title}` : title), })