fix(ags powermenu): make the eventbox the right size

This commit is contained in:
matt1432 2023-12-24 00:25:55 -05:00
parent f065d595a1
commit 6ab95385ee
2 changed files with 4 additions and 5 deletions

View file

@ -7,14 +7,13 @@ import PopupWindow from './misc/popup.js';
import CursorBox from './misc/cursorbox.js';
// FIXME: eventboxes are the wrong size
const PowermenuWidget = () => CenterBox({
class_name: 'powermenu',
// @ts-expect-error
vertical: false,
start_widget: CursorBox({
class_name: 'shutdown',
class_name: 'shutdown button',
on_primary_click_release: () => execAsync(['systemctl', 'poweroff'])
.catch(print),
@ -24,7 +23,7 @@ const PowermenuWidget = () => CenterBox({
}),
center_widget: CursorBox({
class_name: 'reboot',
class_name: 'reboot button',
on_primary_click_release: () => execAsync(['systemctl', 'reboot'])
.catch(print),
@ -34,7 +33,7 @@ const PowermenuWidget = () => CenterBox({
}),
end_widget: CursorBox({
class_name: 'logout',
class_name: 'logout button',
on_primary_click_release: () => Hyprland.sendMessage('dispatch exit')
.catch(print),

View file

@ -14,7 +14,7 @@
min-height: 130px;
}
button {
.button {
margin: 5px 10px;
border-radius: 12px;
min-width: 80px;