refactor(web): use icon-xs where icon buttons were forced to size-6 (#13025)

Co-authored-by: Claude Fable 5 <[email protected]>
This commit is contained in:
Julius MarmingeandClaude Fable 5 authored and GitHub committed 2026-09-22 12:22:12 -07:00
1 parent bbd5cc0323
commit 9515016166
8 files changed
+8 -18

No files matched your search

+1 -1
View File
@@ -3040,7 +3040,7 @@ const SidebarProjectsContent = memo(function SidebarProjectsContent(
variant="ghost-muted"
aria-label="Add project"
data-testid="sidebar-add-project-trigger"
className="size-6 [--control-icon-color:currentColor] text-icon-muted"
className="[--control-icon-color:currentColor] text-icon-muted"
onClick={openAddProject}
/>
}
+1 -1
View File
@@ -1260,7 +1260,7 @@ export function RightPanelTabs(props: RightPanelTabsProps) {
render={
<Button
aria-label="Add panel surface"
className="size-6 shrink-0"
className="shrink-0"
size="icon-xs"
variant="ghost-muted"
/>
+1 -1
View File
@@ -4517,7 +4517,7 @@ export default function Sidebar() {
tabIndex={-1}
aria-hidden="true"
title={`Project settings for ${project.displayName}`}
className="ml-auto size-6 [--control-icon-color:currentColor] text-icon-muted focus-visible:bg-accent focus-visible:text-foreground"
className="ml-auto [--control-icon-color:currentColor] text-icon-muted focus-visible:bg-accent focus-visible:text-foreground"
onPointerDown={(event) => event.stopPropagation()}
onClick={(event) => {
void handleProjectSettings(event, project);
@@ -1814,9 +1814,8 @@ function QueuedMessageTimelineRow({
render={
<Button
type="button"
size="icon-micro"
size="icon-xs"
variant="ghost-muted"
className="size-6"
onPointerDown={(event) => event.preventDefault()}
onClick={() => ctx.onSteerQueuedMessage(queuedMessage.id)}
aria-label="Send now"
@@ -1837,9 +1836,8 @@ function QueuedMessageTimelineRow({
render={
<Button
type="button"
size="icon-micro"
size="icon-xs"
variant="ghost-muted"
className="size-6"
onPointerDown={(event) => event.preventDefault()}
onClick={() => ctx.onRemoveQueuedMessage(queuedMessage.id)}
aria-label="Cancel and return to the composer"
@@ -52,7 +52,7 @@ export function ClerkUserProfileRefreshButton({
<Button
size="sm"
variant="outline"
className={cn("text-[0.8125rem]", className)}
className={className}
disabled={disabled || isPending}
onClick={onClick}
>
@@ -60,12 +60,7 @@ export function T3ConnectEnvironmentRow(props: {
</div>
<CollapsibleTrigger
render={
<Button
size="sm"
variant="destructive-outline"
className="text-[0.8125rem]"
disabled={props.mutationPending}
>
<Button size="sm" variant="destructive-outline" disabled={props.mutationPending}>
Deregister
</Button>
}
@@ -93,7 +88,6 @@ export function T3ConnectEnvironmentRow(props: {
<Button
size="sm"
variant="ghost"
className="text-[0.8125rem]"
disabled={props.mutationPending}
onClick={() => props.onConfirmationChange(false)}
>
@@ -102,7 +96,6 @@ export function T3ConnectEnvironmentRow(props: {
<Button
size="sm"
variant="destructive"
className="text-[0.8125rem]"
disabled={props.mutationPending}
onClick={() => props.onDeregister(environment)}
>
@@ -2000,7 +2000,6 @@ export function PullRequestDetailPanel({
aria-label={
refreshing ? "Refreshing pull request" : "More pull request actions"
}
className="size-6"
size="icon-xs"
variant="ghost-muted"
/>
+1 -1
View File
@@ -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 = 1074;
export const RESTYLE_CEILING = 1070;
const RULE = "shadcn(no-restyle)";