Center icon badges properly and split wallpaper tile row to 2 per row

This commit is contained in:
2026-07-27 12:16:49 -04:00
parent 0dd174d8c7
commit 9a2e352202
3 changed files with 10 additions and 3 deletions
+2 -2
View File
@@ -3,8 +3,8 @@ import { Gtk } from "ags/gtk3"
export function CardHeader({ icon, title }: { icon: any; title: any }) {
return (
<box class="widget-card-header" spacing={10}>
<box class="widget-icon-badge">
<label label={icon} />
<box class="widget-icon-badge" halign={Gtk.Align.CENTER} valign={Gtk.Align.CENTER}>
<label label={icon} xalign={0.5} yalign={0.5} halign={Gtk.Align.CENTER} valign={Gtk.Align.CENTER} />
</box>
<label class="widget-card-title" label={title} xalign={0} halign={Gtk.Align.START} hexpand />
</box>