From 92e701be8f9c5ce9939a37c96efeddd0ca3da038 Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Mon, 20 Apr 2026 21:31:59 +0700 Subject: [PATCH] style: adjust typography and standardize ui text --- .../src/components/ui/segmented-control.tsx | 4 +-- packages/app/src/panels/terminal-panel.tsx | 32 +++++++++++-------- packages/app/src/screens/settings-screen.tsx | 4 +-- .../app/src/screens/settings/host-page.tsx | 6 ++-- .../settings/keyboard-shortcuts-section.tsx | 2 +- 5 files changed, 26 insertions(+), 22 deletions(-) diff --git a/packages/app/src/components/ui/segmented-control.tsx b/packages/app/src/components/ui/segmented-control.tsx index 24d1c5f0e..483f4c5cb 100644 --- a/packages/app/src/components/ui/segmented-control.tsx +++ b/packages/app/src/components/ui/segmented-control.tsx @@ -143,10 +143,10 @@ const styles = StyleSheet.create((theme) => ({ fontWeight: theme.fontWeight.normal, }, labelSm: { - fontSize: theme.fontSize.xs, + fontSize: theme.fontSize.sm, }, labelMd: { - fontSize: theme.fontSize.sm, + fontSize: theme.fontSize.base, }, labelSelected: { color: theme.colors.foreground, diff --git a/packages/app/src/panels/terminal-panel.tsx b/packages/app/src/panels/terminal-panel.tsx index babf798c5..cd6499b1e 100644 --- a/packages/app/src/panels/terminal-panel.tsx +++ b/packages/app/src/panels/terminal-panel.tsx @@ -7,6 +7,7 @@ import type { ListTerminalsResponse } from "@server/shared/messages"; import { TerminalPane } from "@/components/terminal-pane"; import { usePaneContext, usePaneFocus } from "@/panels/pane-context"; import type { PanelDescriptor, PanelRegistration } from "@/panels/panel-registry"; +import { queryClient } from "@/query/query-client"; import { usePanelStore } from "@/stores/panel-store"; import { useSessionStore } from "@/stores/session-store"; import { useWorkspaceExecutionAuthority } from "@/stores/session-store-hooks"; @@ -30,21 +31,24 @@ function useTerminalPanelDescriptor( const workspaceDirectory = workspaceAuthority.ok ? workspaceAuthority.authority.workspaceDirectory : null; - const terminalsQuery = useQuery({ - queryKey: ["terminals", context.serverId, workspaceDirectory] as const, - enabled: Boolean(client && workspaceDirectory), - queryFn: async (): Promise => { - if (!client || !workspaceDirectory) { - throw new Error( - workspaceAuthority.ok - ? "Workspace execution directory not found" - : workspaceAuthority.message, - ); - } - return client.listTerminals(workspaceDirectory); + const terminalsQuery = useQuery( + { + queryKey: ["terminals", context.serverId, workspaceDirectory] as const, + enabled: Boolean(client && workspaceDirectory), + queryFn: async (): Promise => { + if (!client || !workspaceDirectory) { + throw new Error( + workspaceAuthority.ok + ? "Workspace execution directory not found" + : workspaceAuthority.message, + ); + } + return client.listTerminals(workspaceDirectory); + }, + staleTime: 5_000, }, - staleTime: 5_000, - }); + queryClient, + ); const terminal = terminalsQuery.data?.terminals.find((entry) => entry.id === target.terminalId) ?? null; diff --git a/packages/app/src/screens/settings-screen.tsx b/packages/app/src/screens/settings-screen.tsx index 4d7bc6da2..a6a996013 100644 --- a/packages/app/src/screens/settings-screen.tsx +++ b/packages/app/src/screens/settings-screen.tsx @@ -324,7 +324,7 @@ function DesktopAppUpdateRow() { void confirmDialog({ title: "Install desktop update", - message: "This updates Paseo on this computer.", + message: "This updates Paseo on this computer", confirmLabel: "Install update", cancelLabel: "Cancel", }) @@ -350,7 +350,7 @@ function DesktopAppUpdateRow() { Release channel - Switch to Beta to get updates sooner and help shape them. + Switch to Beta to get updates sooner and help shape them - Host not found. + Host not found ); @@ -591,7 +591,7 @@ function PairDeviceRow() { Pair a device - Scan a QR code or copy a link to connect your phone to this host. + Scan a QR code or copy a link to connect your phone to this host @@ -619,7 +619,7 @@ function RemoveHostSection({ host, onRemoved }: { host: HostProfile; onRemoved?: Remove host - Removes this host and its saved connections from this device. + Removes this host and its saved connections from this device