Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

fix(ui): make every button variant a pill (#2191)

clarkmaan97bd611ea4b7
diff --git a/src/components/ApiKeysSection.tsx b/src/components/ApiKeysSection.tsx
index c299c28b7..bf0a44fe8 100644
--- a/src/components/ApiKeysSection.tsx
+++ b/src/components/ApiKeysSection.tsx
@@ -160,8 +160,8 @@ export default function ApiKeysSection() {
</div>
<Button
variant="ghost"
- size="sm"
- className="shrink-0 text-muted-foreground hover:text-destructive"
+ size="icon"
+ className="h-8 w-10 text-muted-foreground hover:text-destructive"
onClick={() => setRevokeTarget(apiKey)}
>
<Trash2 className="h-3.5 w-3.5" />
diff --git a/src/components/AuthenticationStep.tsx b/src/components/AuthenticationStep.tsx
index 9c90f1714..2587b7f64 100644
--- a/src/components/AuthenticationStep.tsx
+++ b/src/components/AuthenticationStep.tsx
@@ -430,7 +430,7 @@ export default function AuthenticationStep({
{t("auth.cloudNotConfigured")}
</div>
{onContinueWithoutAccount && (
- <Button onClick={onContinueWithoutAccount} className="mt-3 h-12 w-full rounded-full">
+ <Button onClick={onContinueWithoutAccount} className="mt-3 h-12 w-full">
{t("auth.getStarted")}
<ArrowRight className="size-4 rtl:rotate-180" />
</Button>
@@ -452,7 +452,7 @@ export default function AuthenticationStep({
<span className="block">{t("auth.signedIn.welcomeBack")}</span>
{user?.name && <span className="mt-1 block">{user.name}</span>}
</p>
- <Button onClick={onAuthComplete} className="mt-7 h-12 w-fit min-w-32 rounded-full px-6">
+ <Button onClick={onAuthComplete} className="mt-7 h-12 w-fit min-w-32 px-6">
{t("auth.common.continue")}
<ArrowRight className="size-4 rtl:rotate-180" />
</Button>
@@ -588,7 +588,7 @@ export default function AuthenticationStep({
type="button"
onClick={handleSSOSignIn}
disabled={isSSOLoading || !oauthProtocolRegistered}
- className="h-12 w-full rounded-full"
+ className="h-12 w-full"
>
{isSSOLoading ? (
<>
diff --git a/src/components/DeveloperSection.tsx b/src/components/DeveloperSection.tsx
index 9bd951728..45a45e5fb 100644
--- a/src/components/DeveloperSection.tsx
+++ b/src/components/DeveloperSection.tsx
@@ -166,12 +166,7 @@ export default function DeveloperSection() {
>
{logPath}
</code>
- <Button
- onClick={handleCopyPath}
- variant="ghost"
- size="sm"
- className="shrink-0 h-8 w-8 p-0"
- >
+ <Button onClick={handleCopyPath} variant="ghost" size="icon" className="size-8">
{copiedPath ? (
<Check className="h-3.5 w-3.5 text-success" />
) : (
diff --git a/src/components/EmailVerificationStep.tsx b/src/components/EmailVerificationStep.tsx
index 32d205021..2b285c7d7 100644
--- a/src/components/EmailVerificationStep.tsx
+++ b/src/components/EmailVerificationStep.tsx
@@ -166,7 +166,7 @@ export default function EmailVerificationStep({
size="sm"
onClick={handleResend}
disabled={resendCooldown > 0 || isResending}
- className="rounded-full text-muted-foreground"
+ className="text-muted-foreground"
>
{isResending ? (
<Loader2 className="size-3.5 animate-spin" />
@@ -182,7 +182,7 @@ export default function EmailVerificationStep({
variant="ghost"
size="sm"
onClick={onBack}
- className="rounded-full text-muted-foreground"
+ className="text-muted-foreground"
>
{t("emailVerification.backToSignIn")}
</Button>
diff --git a/src/components/ForgotPasswordView.tsx b/src/components/ForgotPasswordView.tsx
index 48a111ecd..4fdc2ddae 100644
--- a/src/components/ForgotPasswordView.tsx
+++ b/src/components/ForgotPasswordView.tsx
@@ -54,7 +54,7 @@ export default function ForgotPasswordView({
<Button
onClick={onBack}
variant="outline"
- className="mt-3 h-10 w-full rounded-full border-[var(--onboarding-control-border)] bg-[var(--onboarding-surface)] text-[var(--onboarding-text-primary)]"
+ className="mt-3 w-full border-[var(--onboarding-control-border)] bg-[var(--onboarding-surface)] text-[var(--onboarding-text-primary)]"
>
<ArrowLeft className="size-3.5 rtl:rotate-180" />
<span className="text-sm font-medium">{t("forgotPassword.goBack")}</span>
diff --git a/src/components/TestConnectionButton.tsx b/src/components/TestConnectionButton.tsx
index 9e47ac8a8..bb341fef5 100644
--- a/src/components/TestConnectionButton.tsx
+++ b/src/components/TestConnectionButton.tsx
@@ -101,8 +101,8 @@ export default function TestConnectionButton({ provider, getConfig }: TestConnec
<Button
type="button"
variant="ghost"
- size="sm"
- className="h-6 w-6 p-0 shrink-0"
+ size="icon"
+ className="size-6"
onClick={() => handleCopy(errorInfo.copyCommand!)}
aria-label={t("reasoning.enterprise.technicalDetails.copyCommand")}
>
diff --git a/src/components/TranscriptionModelPicker.tsx b/src/components/TranscriptionModelPicker.tsx
index 77119e0f1..4f09ee8e6 100644
--- a/src/components/TranscriptionModelPicker.tsx
+++ b/src/components/TranscriptionModelPicker.tsx
@@ -160,9 +160,9 @@ function LocalModelCard({
e.stopPropagation();
onDelete();
}}
- size="sm"
+ size="icon"
variant="ghost"
- className="h-6 w-6 p-0 text-muted-foreground/70 hover:text-destructive opacity-0 group-hover:opacity-100 transition-[color,opacity,transform] active:scale-95"
+ className="size-6 text-muted-foreground/70 hover:text-destructive opacity-0 group-hover:opacity-100 transition-[color,opacity,transform] active:scale-95"
>
<Trash2 size={12} />
</Button>
diff --git a/src/components/UpcomingMeetings.tsx b/src/components/UpcomingMeetings.tsx
index a04b19c63..245c7d527 100644
--- a/src/components/UpcomingMeetings.tsx
+++ b/src/components/UpcomingMeetings.tsx
@@ -178,7 +178,7 @@ function EventRow({ event, isNow }: { event: CalendarEvent; isNow: boolean }) {
size="sm"
variant="ghost"
onClick={startNotes}
- className="pointer-events-auto h-7 shrink-0 gap-1.5 rounded-full bg-surface-3 px-3 text-xs text-foreground hover:bg-surface-raised dark:bg-surface-2 dark:hover:bg-surface-3"
+ className="pointer-events-auto h-7 bg-surface-3 hover:bg-surface-raised dark:bg-surface-2 dark:hover:bg-surface-3"
>
{joinUrl ? <Video size={12} /> : <Mic size={12} />}
{joinUrl ? t("upcoming.joinAndTranscribe") : t("upcoming.takeNotes")}
@@ -315,11 +315,7 @@ export default function UpcomingMeetings({
title={t("upcoming.connectCalendar")}
description={t("upcoming.connectCalendarDescription")}
>
- <Button
- size="sm"
- onClick={onConnectCalendar}
- className="h-[30px] rounded-full px-3.5 text-xs"
- >
+ <Button size="sm" onClick={onConnectCalendar} className="h-[30px] px-3.5">
{t("upcoming.connectCalendarButton")}
</Button>
</EmptyStateCard>
@@ -339,7 +335,7 @@ export default function UpcomingMeetings({
size="sm"
variant="outline"
onClick={() => systemAudio.request()}
- className="h-[30px] rounded-full px-3.5 text-xs"
+ className="h-[30px] px-3.5"
>
{systemAudio.mode === "native"
? t("upcoming.openSettings")
diff --git a/src/components/dictation/AssistantPanel.tsx b/src/components/dictation/AssistantPanel.tsx
index c66e8626b..50dbe0175 100644
--- a/src/components/dictation/AssistantPanel.tsx
+++ b/src/components/dictation/AssistantPanel.tsx
@@ -605,7 +605,7 @@ export function AssistantPanel({
type="button"
variant="secondary"
size="sm"
- className="rounded-full px-4"
+ className="px-4"
onClick={onClose}
tabIndex={footerPhase === "actions" ? 0 : -1}
>
@@ -615,7 +615,7 @@ export function AssistantPanel({
<Button
type="button"
size="sm"
- className="rounded-full border-border/70 bg-surface-raised px-4 font-medium text-foreground shadow-sm hover:bg-surface-3 dark:border-white dark:bg-white dark:text-neutral-950 dark:hover:bg-white/90"
+ className="bg-surface-raised bg-none px-4 font-medium text-foreground shadow-sm hover:bg-surface-3 dark:bg-white dark:text-neutral-950 dark:hover:bg-white/90"
onClick={() => void handleCopy()}
aria-live="polite"
tabIndex={footerPhase === "actions" ? 0 : -1}
diff --git a/src/components/onboarding/OnboardingShell.tsx b/src/components/onboarding/OnboardingShell.tsx
index 338b5c187..210658138 100644
--- a/src/components/onboarding/OnboardingShell.tsx
+++ b/src/components/onboarding/OnboardingShell.tsx
@@ -318,12 +318,7 @@ export default function OnboardingShell({
</Button>
)}
{onSkip && (
- <Button
- type="button"
- variant="ghost"
- onClick={onSkip}
- className="h-9 min-w-20 rounded-full px-4 text-sm"
- >
+ <Button type="button" variant="ghost" onClick={onSkip} className="h-9 min-w-20">
{skipLabel ?? t("common.skip")}
</Button>
)}
diff --git a/src/components/ui/MicrophoneSettings.tsx b/src/components/ui/MicrophoneSettings.tsx
index 7c832e139..b9b8a8a22 100644
--- a/src/components/ui/MicrophoneSettings.tsx
+++ b/src/components/ui/MicrophoneSettings.tsx
@@ -116,10 +116,10 @@ export const MicrophoneSettings: React.FC<MicrophoneSettingsProps> = ({
</label>
<Button
variant="ghost"
- size="sm"
+ size="icon"
onClick={loadDevices}
disabled={isLoading}
- className="h-7 w-7 p-0"
+ className="size-7"
>
<RefreshCw className={`w-3.5 h-3.5 ${isLoading ? "animate-spin" : ""}`} />
</Button>
diff --git a/src/components/ui/ModelCardList.tsx b/src/components/ui/ModelCardList.tsx
index 05172dfc5..ab459f58a 100644
--- a/src/components/ui/ModelCardList.tsx
+++ b/src/components/ui/ModelCardList.tsx
@@ -183,9 +183,9 @@ export function ModelCard({
e.stopPropagation();
onDelete?.(model.value);
}}
- size="sm"
+ size="icon"
variant="ghost"
- className="h-6 w-6 p-0 text-muted-foreground/70 hover:text-destructive opacity-0 group-hover:opacity-100 transition-[color,opacity,transform] active:scale-95"
+ className="size-6 text-muted-foreground/70 hover:text-destructive opacity-0 group-hover:opacity-100 transition-[color,opacity,transform] active:scale-95"
>
<Trash2 size={12} />
</Button>
diff --git a/src/components/ui/PromptStudio.tsx b/src/components/ui/PromptStudio.tsx
index e3c896419..62339e043 100644
--- a/src/components/ui/PromptStudio.tsx
+++ b/src/components/ui/PromptStudio.tsx
@@ -593,8 +593,8 @@ export default function PromptStudio({ className = "", kind = "cleanup" }: Promp
<Button
onClick={() => copyText(testResult)}
variant="ghost"
- size="sm"
- className="h-6 px-1.5"
+ size="icon"
+ className="h-6 w-7"
>
<Copy className="w-3 h-3 text-muted-foreground" />
</Button>
diff --git a/src/components/ui/button.tsx b/src/components/ui/button.tsx
index 55ab8753e..e55e0782e 100644
--- a/src/components/ui/button.tsx
+++ b/src/components/ui/button.tsx
@@ -8,7 +8,7 @@ import { BRAND_GLASS_SURFACE } from "./gradientCircle";
const buttonVariants = cva(
[
"inline-flex items-center justify-center gap-2 whitespace-nowrap",
- "rounded text-sm font-medium cursor-pointer select-none",
+ "rounded-full text-sm font-medium cursor-pointer select-none",
"transition-[background-color,border-color,color,transform] duration-200 ease-out",
"outline-none focus-visible:ring-2 focus-visible:ring-ring/30 focus-visible:ring-offset-1 focus-visible:ring-offset-background",
"disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed",
@@ -19,7 +19,7 @@ const buttonVariants = cva(
variant: {
// Primary CTA — brand glass capsule
default: [
- "relative rounded-full font-semibold tracking-[0.005em]",
+ "relative font-semibold tracking-[0.005em]",
BRAND_GLASS_SURFACE,
"hover:brightness-110",
"active:brightness-95 active:scale-[0.985]",
@@ -111,7 +111,8 @@ const buttonVariants = cva(
default: "h-10 px-4 py-2",
sm: "h-8 px-3 text-xs gap-1.5",
lg: "h-12 px-6 text-sm",
- icon: "size-10",
+ // Icon buttons keep the 4px radius; the pill base is sized for text labels.
+ icon: "size-10 rounded",
},
},
defaultVariants: {