refactor(web): one vertical rhythm for dialog bodies (#13032)
Co-authored-by: Claude Fable 5 <[email protected]>
This commit is contained in:
1 parent
aa2b25d29b
commit
f3d3fe4569
16 files changed
+30
-26
No files matched your search
@@ -94,7 +94,7 @@ function CustomSnoozeDialog() {
|
||||
<DialogTitle>Custom snooze</DialogTitle>
|
||||
<DialogDescription>Choose when snoozed threads return to your inbox.</DialogDescription>
|
||||
</DialogHeader>
|
||||
<DialogPanel className="flex flex-col gap-4 text-base sm:text-sm">
|
||||
<DialogPanel className="text-base sm:text-sm">
|
||||
<Tabs.Root
|
||||
value={mode}
|
||||
onValueChange={(value) => {
|
||||
|
||||
@@ -1882,7 +1882,7 @@ export default function GitActionsControl({
|
||||
<DialogTitle>{COMMIT_DIALOG_TITLE}</DialogTitle>
|
||||
<DialogDescription>{COMMIT_DIALOG_DESCRIPTION}</DialogDescription>
|
||||
</DialogHeader>
|
||||
<DialogPanel className="space-y-4">
|
||||
<DialogPanel>
|
||||
<div className="space-y-3 rounded-xl bg-zinc-25 p-3 text-sm ring-1 ring-black/5 dark:bg-white/[0.035] dark:ring-white/5">
|
||||
<div className="grid grid-cols-[auto_1fr] items-center gap-x-2 gap-y-1">
|
||||
<span className="text-muted-foreground">Branch</span>
|
||||
|
||||
@@ -2514,7 +2514,7 @@ const SidebarProjectItem = memo(function SidebarProjectItem(props: SidebarProjec
|
||||
: "Update the project title."}
|
||||
</DialogDescription>
|
||||
</DialogHeader>
|
||||
<DialogPanel className="space-y-4">
|
||||
<DialogPanel>
|
||||
<div className="grid gap-1.5">
|
||||
<span className="text-xs font-medium text-foreground">Project title</span>
|
||||
<Input
|
||||
@@ -2561,7 +2561,7 @@ const SidebarProjectItem = memo(function SidebarProjectItem(props: SidebarProjec
|
||||
: "Choose how this project should be grouped in the sidebar."}
|
||||
</DialogDescription>
|
||||
</DialogHeader>
|
||||
<DialogPanel className="space-y-4">
|
||||
<DialogPanel>
|
||||
<div className="grid gap-1.5">
|
||||
<span className="text-xs font-medium text-foreground">Grouping rule</span>
|
||||
<Select
|
||||
|
||||
@@ -205,7 +205,7 @@ export function PullRequestThreadDialog({
|
||||
the draft thread in the main repo or in a dedicated worktree.
|
||||
</DialogDescription>
|
||||
</DialogHeader>
|
||||
<DialogPanel className="space-y-4">
|
||||
<DialogPanel>
|
||||
<label className="grid gap-1.5">
|
||||
<span className="text-xs font-medium text-foreground capitalize">
|
||||
{terminology.singular}
|
||||
|
||||
@@ -223,7 +223,7 @@ export const ProposedPlanCard = memo(function ProposedPlanCard({
|
||||
Enter a path relative to <code>{workspaceRoot ?? "the workspace"}</code>.
|
||||
</DialogDescription>
|
||||
</DialogHeader>
|
||||
<DialogPanel className="space-y-3">
|
||||
<DialogPanel>
|
||||
<label htmlFor={savePathInputId} className="grid gap-1.5">
|
||||
<span className="text-xs font-medium text-foreground">Workspace path</span>
|
||||
<Input
|
||||
|
||||
@@ -164,7 +164,7 @@ function ActiveSshPasswordPrompt({
|
||||
to the local SSH process for this connection attempt and is not saved by T3 Code.
|
||||
</DialogDescription>
|
||||
</DialogHeader>
|
||||
<DialogPanel className="space-y-3" scrollFade={false}>
|
||||
<DialogPanel scrollFade={false}>
|
||||
<form
|
||||
className="space-y-3"
|
||||
id={formId}
|
||||
|
||||
@@ -208,7 +208,7 @@ function LinkPullRequestDialog({
|
||||
this environment has a project for.
|
||||
</DialogDescription>
|
||||
</DialogHeader>
|
||||
<DialogPanel className="space-y-3">
|
||||
<DialogPanel>
|
||||
<Input
|
||||
ref={inputRef}
|
||||
placeholder="Pull request URL or #42"
|
||||
|
||||
@@ -490,9 +490,11 @@ function ImportingStep() {
|
||||
<DialogTitle>Importing cookies</DialogTitle>
|
||||
<DialogDescription>This may take a moment.</DialogDescription>
|
||||
</DialogHeader>
|
||||
<DialogPanel className="flex items-center gap-3 py-6">
|
||||
<Spinner size="md" tone="muted" />
|
||||
<span className="text-sm text-muted-foreground">Importing…</span>
|
||||
<DialogPanel>
|
||||
<div className="flex items-center gap-3 py-2">
|
||||
<Spinner size="md" tone="muted" />
|
||||
<span className="text-sm text-muted-foreground">Importing…</span>
|
||||
</div>
|
||||
</DialogPanel>
|
||||
</>
|
||||
);
|
||||
@@ -515,11 +517,13 @@ function CheckingStep({
|
||||
: "Checking whether the browser has closed."}
|
||||
</DialogDescription>
|
||||
</DialogHeader>
|
||||
<DialogPanel className="flex items-center gap-3 py-6">
|
||||
<Spinner size="md" tone="muted" />
|
||||
<span className="text-sm text-muted-foreground">
|
||||
{check === "fullDiskAccess" ? "Checking access…" : "Checking…"}
|
||||
</span>
|
||||
<DialogPanel>
|
||||
<div className="flex items-center gap-3 py-2">
|
||||
<Spinner size="md" tone="muted" />
|
||||
<span className="text-sm text-muted-foreground">
|
||||
{check === "fullDiskAccess" ? "Checking access…" : "Checking…"}
|
||||
</span>
|
||||
</div>
|
||||
</DialogPanel>
|
||||
</>
|
||||
);
|
||||
|
||||
@@ -828,7 +828,7 @@ const PairingLinkListRow = memo(function PairingLinkListRow({
|
||||
: "Clipboard copy is unavailable here. Manually copy this code into another client."}
|
||||
</DialogDescription>
|
||||
</DialogHeader>
|
||||
<DialogPanel className="space-y-4">
|
||||
<DialogPanel>
|
||||
<Textarea
|
||||
readOnly
|
||||
value={revealValue}
|
||||
@@ -1133,7 +1133,7 @@ const AuthorizedClientsHeaderAction = memo(function AuthorizedClientsHeaderActio
|
||||
authorized client.
|
||||
</DialogDescription>
|
||||
</DialogHeader>
|
||||
<DialogPanel className="space-y-5">
|
||||
<DialogPanel>
|
||||
<label className="block">
|
||||
<span className="mb-1.5 block text-xs font-medium text-foreground">
|
||||
Client label (optional)
|
||||
@@ -3602,7 +3602,7 @@ export function ConnectionsSettings() {
|
||||
Tailscale to proxy HTTPS traffic to this backend.
|
||||
</DialogDescription>
|
||||
</DialogHeader>
|
||||
<DialogPanel className="space-y-4">
|
||||
<DialogPanel>
|
||||
<label className="block">
|
||||
<span className="text-sm font-medium text-foreground">HTTPS port</span>
|
||||
<Input
|
||||
|
||||
@@ -72,7 +72,7 @@ export function DeviceHostEditor({
|
||||
Hosts on the same machine are skipped.
|
||||
</DialogDescription>
|
||||
</DialogHeader>
|
||||
<DialogPanel className="space-y-4">
|
||||
<DialogPanel>
|
||||
<label className="block space-y-1.5 text-sm">
|
||||
<span>Name</span>
|
||||
<Input
|
||||
|
||||
@@ -105,7 +105,7 @@ export function ProjectIconPickerDialog({
|
||||
<DialogTitle>Choose project icon</DialogTitle>
|
||||
<DialogDescription>Choose an icon, emoji, or monogram.</DialogDescription>
|
||||
</DialogHeader>
|
||||
<DialogPanel className="flex min-h-0 flex-col gap-4">
|
||||
<DialogPanel className="flex min-h-0 flex-col">
|
||||
<ToggleGroup
|
||||
aria-label="Icon type"
|
||||
variant="segmented"
|
||||
|
||||
@@ -899,7 +899,7 @@ function BackgroundActivityAdvancedDialog({
|
||||
Tune the shared power policy and the background intervals that feed it.
|
||||
</DialogDescription>
|
||||
</DialogHeader>
|
||||
<DialogPanel className="space-y-0 px-6 pb-5">
|
||||
<DialogPanel>
|
||||
<div className="overflow-hidden rounded-xl border bg-card text-card-foreground">
|
||||
<div className="flex flex-col gap-3 border-b px-4 py-3 sm:flex-row sm:items-center sm:justify-between">
|
||||
<div className="min-w-0 space-y-1">
|
||||
|
||||
@@ -427,7 +427,7 @@ export function ThemeImportDialog({
|
||||
<DialogHeader>
|
||||
<DialogTitle>Add a theme</DialogTitle>
|
||||
</DialogHeader>
|
||||
<DialogPanel className="space-y-5">
|
||||
<DialogPanel>
|
||||
<ThemeSearchSection
|
||||
onInstalled={(themes, context) => {
|
||||
onImportedMany(themes, context);
|
||||
|
||||
@@ -171,7 +171,7 @@ function DialogPanel({
|
||||
<ScrollArea scrollFade={scrollFade}>
|
||||
<div
|
||||
className={cn(
|
||||
"p-6 in-[[data-slot=dialog-popup]:has([data-slot=dialog-header])]:pt-1 in-[[data-slot=dialog-popup]:has([data-slot=dialog-footer]:not(.border-t))]:pb-1",
|
||||
"space-y-4 p-6 in-[[data-slot=dialog-popup]:has([data-slot=dialog-header])]:pt-1 in-[[data-slot=dialog-popup]:has([data-slot=dialog-footer]:not(.border-t))]:pb-1",
|
||||
className,
|
||||
)}
|
||||
data-slot="dialog-panel"
|
||||
|
||||
@@ -252,7 +252,7 @@ export function UsagePriceOverrides({
|
||||
Prices apply to all past and future usage on the environments you select.
|
||||
</DialogDescription>
|
||||
</DialogHeader>
|
||||
<DialogPanel className="grid gap-4">
|
||||
<DialogPanel>
|
||||
<div className="flex flex-wrap items-center justify-between gap-2">
|
||||
<div className="flex min-w-0 items-center gap-2">
|
||||
<Label id="usage-prices-apply-label" className="shrink-0">
|
||||
|
||||
@@ -8,7 +8,7 @@ import * as NodeURL from "node:url";
|
||||
// components/ui exports are migrated to variants (see vite.config.ts). This gate keeps the
|
||||
// count from growing: CI fails when findings exceed the ceiling. Lower the ceiling when you
|
||||
// migrate a file, and delete this script when the rule becomes an error.
|
||||
export const RESTYLE_CEILING = 921;
|
||||
export const RESTYLE_CEILING = 899;
|
||||
|
||||
const RULE = "shadcn(no-restyle)";
|
||||
|
||||
|
||||
Reference in new issue
Block a user