updates: better styles

This commit is contained in:
2 * r + 2 * t 2025-02-26 17:16:24 +11:00
parent 46ff77c1d6
commit 9ce726b83d
2 changed files with 9 additions and 1 deletions

View file

@ -38,6 +38,10 @@ $-accent: scheme.$blue;
margin-left: lib.s(12);
}
.list {
@include lib.spacing($vertical: true);
}
.news {
margin-bottom: lib.s(5);
}

View file

@ -29,8 +29,12 @@ const Update = (update: IUpdate) => {
>
<label
truncate
useMarkup
xalign={0}
label={`${update.name} (${update.version.old} -> ${update.version.new})\n ${update.description}`}
label={bind(Palette.get_default(), "colours").as(
c =>
`${update.name} <span foreground="${c.teal}">(${update.version.old} -> ${update.version.new})</span>\n <span foreground="${c.subtext0}">${update.description}</span>`
)}
/>
</button>
);