@devries-cameron20 / t3code Mirror · read-only / commits / 9515016166
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 23, 23:00 UTC

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

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>

Julius Marminge committed Sep 22, 2026 at 12:22 UTC 9515016166f926968dacaefc69e2ea0af63942ae
8 files changed +8 -18
apps/web/src/components/LegacySidebar.tsx
+1 -1
@@ -3040,7 +3040,7 @@ const SidebarProjectsContent = memo(function SidebarProjectsContent(
3040 variant="ghost-muted"
3041 aria-label="Add project"
3042 data-testid="sidebar-add-project-trigger"
3043 - className="size-6 [--control-icon-color:currentColor] text-icon-muted"
3043 + className="[--control-icon-color:currentColor] text-icon-muted"
3044 onClick={openAddProject}
3045 />
3046 }
apps/web/src/components/RightPanelTabs.tsx
+1 -1
@@ -1260,7 +1260,7 @@ export function RightPanelTabs(props: RightPanelTabsProps) {
1260 render={
1261 <Button
1262 aria-label="Add panel surface"
1263 - className="size-6 shrink-0"
1263 + className="shrink-0"
1264 size="icon-xs"
1265 variant="ghost-muted"
1266 />
apps/web/src/components/Sidebar.tsx
+1 -1
@@ -4517,7 +4517,7 @@ export default function Sidebar() {
4517 tabIndex={-1}
4518 aria-hidden="true"
4519 title={`Project settings for ${project.displayName}`}
4520 - className="ml-auto size-6 [--control-icon-color:currentColor] text-icon-muted focus-visible:bg-accent focus-visible:text-foreground"
4520 + className="ml-auto [--control-icon-color:currentColor] text-icon-muted focus-visible:bg-accent focus-visible:text-foreground"
4521 onPointerDown={(event) => event.stopPropagation()}
4522 onClick={(event) => {
4523 void handleProjectSettings(event, project);
apps/web/src/components/chat/MessagesTimeline.tsx
+2 -4
@@ -1814,9 +1814,8 @@ function QueuedMessageTimelineRow({
1814 render={
1815 <Button
1816 type="button"
1817 - size="icon-micro"
1817 + size="icon-xs"
1818 variant="ghost-muted"
1819 - className="size-6"
1819 onPointerDown={(event) => event.preventDefault()}
1820 onClick={() => ctx.onSteerQueuedMessage(queuedMessage.id)}
1821 aria-label="Send now"
@@ -1837,9 +1836,8 @@ function QueuedMessageTimelineRow({
1836 render={
1837 <Button
1838 type="button"
1840 - size="icon-micro"
1839 + size="icon-xs"
1840 variant="ghost-muted"
1842 - className="size-6"
1841 onPointerDown={(event) => event.preventDefault()}
1842 onClick={() => ctx.onRemoveQueuedMessage(queuedMessage.id)}
1843 aria-label="Cancel and return to the composer"
apps/web/src/components/clerk/ClerkUserProfilePage.tsx
+1 -1
@@ -52,7 +52,7 @@ export function ClerkUserProfileRefreshButton({
52 <Button
53 size="sm"
54 variant="outline"
55 - className={cn("text-[0.8125rem]", className)}
55 + className={className}
56 disabled={disabled || isPending}
57 onClick={onClick}
58 >
apps/web/src/components/clerk/T3ConnectUserProfilePage.tsx
+1 -8
@@ -60,12 +60,7 @@ export function T3ConnectEnvironmentRow(props: {
60 </div>
61 <CollapsibleTrigger
62 render={
63 - <Button
64 - size="sm"
65 - variant="destructive-outline"
66 - className="text-[0.8125rem]"
67 - disabled={props.mutationPending}
68 - >
63 + <Button size="sm" variant="destructive-outline" disabled={props.mutationPending}>
64 Deregister
65 </Button>
66 }
@@ -93,7 +88,6 @@ export function T3ConnectEnvironmentRow(props: {
88 <Button
89 size="sm"
90 variant="ghost"
96 - className="text-[0.8125rem]"
91 disabled={props.mutationPending}
92 onClick={() => props.onConfirmationChange(false)}
93 >
@@ -102,7 +96,6 @@ export function T3ConnectEnvironmentRow(props: {
96 <Button
97 size="sm"
98 variant="destructive"
105 - className="text-[0.8125rem]"
99 disabled={props.mutationPending}
100 onClick={() => props.onDeregister(environment)}
101 >
apps/web/src/components/pullRequest/PullRequestDetailPanel.tsx
-1
@@ -2000,7 +2000,6 @@ export function PullRequestDetailPanel({
2000 aria-label={
2001 refreshing ? "Refreshing pull request" : "More pull request actions"
2002 }
2003 - className="size-6"
2003 size="icon-xs"
2004 variant="ghost-muted"
2005 />
scripts/lint-restyle-ceiling.ts
+1 -1
@@ -8,7 +8,7 @@ import * as NodeURL from "node:url";
8 // components/ui exports are migrated to variants (see vite.config.ts). This gate keeps the
9 // count from growing: CI fails when findings exceed the ceiling. Lower the ceiling when you
10 // migrate a file, and delete this script when the rule becomes an error.
11 -export const RESTYLE_CEILING = 1074;
11 +export const RESTYLE_CEILING = 1070;
12
13 const RULE = "shadcn(no-restyle)";
14