From 8c8e112249a797a68930debec9f0ca92a40fb3a4 Mon Sep 17 00:00:00 2001 From: Franek Date: Sun, 18 May 2025 20:50:24 +0200 Subject: [PATCH] fix(ags/bar): styling --- ags/styles/components/_bar.scss | 4 ++-- ags/widget/bar/components/network_info.tsx | 2 +- ags/widget/launcher/clipboard.tsx | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/ags/styles/components/_bar.scss b/ags/styles/components/_bar.scss index 428adf2..fbf80b3 100644 --- a/ags/styles/components/_bar.scss +++ b/ags/styles/components/_bar.scss @@ -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; } diff --git a/ags/widget/bar/components/network_info.tsx b/ags/widget/bar/components/network_info.tsx index b83602a..b3e2243 100644 --- a/ags/widget/bar/components/network_info.tsx +++ b/ags/widget/bar/components/network_info.tsx @@ -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"))} : -} \ No newline at end of file +} diff --git a/ags/widget/launcher/clipboard.tsx b/ags/widget/launcher/clipboard.tsx index 073ffc2..dde626b 100644 --- a/ags/widget/launcher/clipboard.tsx +++ b/ags/widget/launcher/clipboard.tsx @@ -35,8 +35,7 @@ async function getClipboardHistory(history: Variable) { history.set(ids .map((id, index) => ({ id, content: contents[index] })) .filter(({ content }) => content && content.length > 0)); - } catch (rer){ - console.error(rer) + } catch { history.set([]); } }