fix(ags/bar): styling

This commit is contained in:
Franek 2025-05-18 20:50:24 +02:00
parent 5b073fa9d6
commit 8c8e112249
3 changed files with 4 additions and 5 deletions

View File

@ -2,7 +2,7 @@
window.bar {
font-weight: bold;
>box {
border-radius: 10px;
}
@ -11,7 +11,7 @@ window.bar {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
background: $base00;
padding: 0rem 1rem;
padding: 0.1rem 1rem;
margin: 0;
*:not(.separator) { color: $base0B; }

View File

@ -74,4 +74,4 @@ export default function NetworkInfo() {
TX: {dataBinding.as(data => toHumanReadable(data.totalTx / 4, "B/s"))}
RX: {dataBinding.as(data => toHumanReadable(data.totalRx / 4, "B/s"))}
</box> : <label>No network</label>
}
}

View File

@ -35,8 +35,7 @@ async function getClipboardHistory(history: Variable<Entry[]>) {
history.set(ids
.map((id, index) => ({ id, content: contents[index] }))
.filter(({ content }) => content && content.length > 0));
} catch (rer){
console.error(rer)
} catch {
history.set([]);
}
}