From 7665a7b435607ddb825547bf9bcde663d591ccf5 Mon Sep 17 00:00:00 2001 From: zipg Date: Sun, 28 Jun 2026 22:23:18 +0800 Subject: [PATCH] Improve: align toolbar button text --- .../src/components/layout/AppToolbar.vue | 24 +++++++++++-------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/apps/desktop/src/components/layout/AppToolbar.vue b/apps/desktop/src/components/layout/AppToolbar.vue index 2cc44e4a85..b4ce5b62f0 100644 --- a/apps/desktop/src/components/layout/AppToolbar.vue +++ b/apps/desktop/src/components/layout/AppToolbar.vue @@ -354,29 +354,33 @@ function isRightItemVisible(key: string) { // Track checking updates state for the overflow menu disabled state const checkingUpdates = computed(() => props.checkingUpdates); + +const toolbarTextButtonClass = "h-8 px-2 text-xs gap-1 leading-none"; +const toolbarTextLabelClass = "inline-flex translate-y-px items-center leading-none"; +const toolbarDropdownTriggerClass = `inline-flex h-8 items-center gap-1 rounded-[6px] px-2 text-xs font-medium leading-none hover:bg-muted hover:text-foreground dark:hover:bg-muted/50 transition-colors [&>span:first-child]:translate-y-px`;