diff --git a/apps/web/src/components/DiffPanel.tsx b/apps/web/src/components/DiffPanel.tsx index 46fbafe2f78d..bcfef7784806 100644 --- a/apps/web/src/components/DiffPanel.tsx +++ b/apps/web/src/components/DiffPanel.tsx @@ -651,7 +651,8 @@ export default function DiffPanel({
} + className="max-w-full" aria-label={`Diff scope: ${selectedScopeLabel}`} > {selectedScopeLabel} diff --git a/apps/web/src/components/chat/useAutoBalanceUpdateBanner.tsx b/apps/web/src/components/chat/useAutoBalanceUpdateBanner.tsx index c928254d4f60..4e8d6a746953 100644 --- a/apps/web/src/components/chat/useAutoBalanceUpdateBanner.tsx +++ b/apps/web/src/components/chat/useAutoBalanceUpdateBanner.tsx @@ -21,6 +21,7 @@ import { ServerUpdateProgress, ServerUpdatesAction, } from "../ServerUpdateAction"; +import { InlineButton } from "../ui/button"; import { Popover, PopoverPopup, PopoverTrigger } from "../ui/popover"; import type { ComposerBannerStackItem } from "./ComposerBannerStack"; import { ComposerServerUpdateIcon } from "./ComposerServerUpdateStatus"; @@ -95,7 +96,8 @@ export function useAutoBalanceUpdateBanner( title: ( } + className="block max-w-full truncate" aria-label={`${title}. View machines`} > {title} diff --git a/apps/web/src/components/device/DeviceToolVersions.tsx b/apps/web/src/components/device/DeviceToolVersions.tsx index 4dc926ed3f29..b8e886829873 100644 --- a/apps/web/src/components/device/DeviceToolVersions.tsx +++ b/apps/web/src/components/device/DeviceToolVersions.tsx @@ -1,5 +1,6 @@ import type { ReactNode } from "react"; import type { DeviceToolVersions as ToolVersions } from "@t3tools/contracts"; +import { InlineButton } from "~/components/ui/button"; import { Popover, PopoverPopup, PopoverTitle, PopoverTrigger } from "~/components/ui/popover"; export function DeviceToolVersions({ @@ -32,7 +33,7 @@ export function DeviceToolVersions({ ? `${label}: ${version ? `version ${version}` : selected ? "not installed" : "version unknown"}. Show details` : undefined } - className="rounded text-xs text-muted-foreground underline decoration-muted-foreground/40 underline-offset-4 hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring" + render={} > {kind ? version diff --git a/apps/web/src/components/pullRequest/PullRequestCodeTab.tsx b/apps/web/src/components/pullRequest/PullRequestCodeTab.tsx index c9924223ed8e..85a5185c1597 100644 --- a/apps/web/src/components/pullRequest/PullRequestCodeTab.tsx +++ b/apps/web/src/components/pullRequest/PullRequestCodeTab.tsx @@ -1069,7 +1069,8 @@ function PullRequestCodeTab({ {orderedCommits.length > 0 ? ( } + className="min-w-0 max-w-64" aria-label={`Diff scope: ${scopeLabel}`} > {scopeLabel} diff --git a/apps/web/src/components/settings/SettingsBreadcrumb.tsx b/apps/web/src/components/settings/SettingsBreadcrumb.tsx index f377329676aa..fb741c4d4fed 100644 --- a/apps/web/src/components/settings/SettingsBreadcrumb.tsx +++ b/apps/web/src/components/settings/SettingsBreadcrumb.tsx @@ -2,11 +2,11 @@ import { resolveEnvironmentMachineKind } from "@t3tools/contracts"; import { LayersIcon } from "lucide-react"; import type { ReactNode } from "react"; -import { cn } from "../../lib/utils"; import type { SidebarProjectSnapshot } from "../../sidebarProjectGrouping"; import type { EnvironmentPresentation } from "../../state/environments"; import { EnvironmentMachineIcon } from "../EnvironmentMachineIcon"; import { ProjectFavicon } from "../ProjectFavicon"; +import { InlineButton } from "../ui/button"; import { Menu, MenuPopup, @@ -111,10 +111,8 @@ function ScopeMenu({ } + className="min-w-0 max-w-56 gap-1.5" > {icon} {label} diff --git a/apps/web/src/components/usage/UsagePage.tsx b/apps/web/src/components/usage/UsagePage.tsx index 3cb7ebc6cfad..1df85ca69ac8 100644 --- a/apps/web/src/components/usage/UsagePage.tsx +++ b/apps/web/src/components/usage/UsagePage.tsx @@ -39,7 +39,7 @@ import { formatUsd, makeWindow, } from "@t3tools/shared/usageFormat"; -import { Button } from "../ui/button"; +import { Button, InlineButton } from "../ui/button"; import { Menu, MenuCheckboxItem, @@ -737,7 +737,10 @@ function UsageEnvironmentFilter({ return ( <> - + } + className="group/usage-environment min-w-0 max-w-full gap-1" + > {label} {showUsageStatus && pendingCount > 0 ? ( diff --git a/scripts/lint-restyle-ceiling.ts b/scripts/lint-restyle-ceiling.ts index 70b0092e6e60..63573ef391be 100644 --- a/scripts/lint-restyle-ceiling.ts +++ b/scripts/lint-restyle-ceiling.ts @@ -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 = 784; +export const RESTYLE_CEILING = 735; const RULE = "shadcn(no-restyle)";