@devries-cameron20 / t3code Mirror · read-only / commits / 26c6df72f8
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, 00:30 UTC

fix(web): icons line up with the first line of their text (#18636)

Co-authored-by: Julius Marminge <julius0216@outlook.com>

Akash Moradiya committed Oct 20, 2026 at 04:46 UTC 26c6df72f82d09274bc6066cfe4204f97ab0b2f2
10 files changed +27 -20
apps/web/src/components/CommandPalette.tsx
+5 -2
@@ -206,6 +206,7 @@ import { orderItemsByPreferredIds, sortLogicalProjectsForSidebar } from "./Sideb
206 import { resolveEnvironmentOptionLabel } from "./BranchToolbar.logic";
207 import { CommandPaletteContent } from "./CommandPaletteContent";
208 import {
209 + CommandPaletteTitleIcon,
210 CommandPaletteVirtualizedResults,
211 scrollCommandPaletteRowIntoView,
212 } from "./CommandPaletteResults";
@@ -3274,7 +3275,9 @@ function OpenCommandPaletteDialog(props: {
3275 {newProjectPathPreview !== null ? (
3276 <div className="p-2 pb-0">
3277 <div className="flex min-h-8 items-center gap-2 rounded-sm px-2 py-1.5">
3277 - <FolderGit2Icon className={ITEM_ICON_CLASS} />
3278 + <CommandPaletteTitleIcon>
3279 + <FolderGit2Icon className={ITEM_ICON_CLASS} />
3280 + </CommandPaletteTitleIcon>
3281 <span className="flex min-w-0 flex-1 flex-col">
3282 <span className="truncate text-foreground text-sm">
3283 {newProjectName.length > 0 ? newProjectName : "New project"}
@@ -3293,7 +3296,7 @@ function OpenCommandPaletteDialog(props: {
3296 <div className="shrink-0 p-2 pb-0">
3297 <div className="px-2 py-1.5 font-medium text-muted-foreground text-xs">Repository</div>
3298 <div className="flex min-h-8 items-center gap-2 rounded-sm px-2 py-1.5">
3296 - {remoteProjectContext.icon}
3299 + <CommandPaletteTitleIcon>{remoteProjectContext.icon}</CommandPaletteTitleIcon>
3300 <span className="flex min-w-0 flex-1 flex-col">
3301 <span className="truncate text-foreground text-sm">{remoteProjectContext.title}</span>
3302 <span className="truncate text-muted-foreground/85 text-xs">
apps/web/src/components/CommandPaletteResults.tsx
+7 -3
@@ -1,7 +1,7 @@
1 import { type ResolvedKeybindingsConfig } from "@t3tools/contracts";
2 import { LegendList, type LegendListRef } from "@legendapp/list/react";
3 import { ChevronRightIcon } from "lucide-react";
4 -import { type RefObject, useState } from "react";
4 +import { type ReactNode, type RefObject, useState } from "react";
5 import { cn } from "~/lib/utils";
6 import { shortcutLabelForCommand } from "../keybindings";
7 import {
@@ -150,12 +150,16 @@ export function CommandPaletteVirtualizedResults(props: CommandPaletteVirtualize
150 );
151 }
152
153 +export function CommandPaletteTitleIcon(props: { children: ReactNode }) {
154 + return <span className="flex h-5 shrink-0 items-center self-start pt-0.5">{props.children}</span>;
155 +}
156 +
157 function DisabledCommandPaletteResultRow(props: {
158 item: CommandPaletteActionItem | CommandPaletteSubmenuItem;
159 }) {
160 return (
161 <div className="flex min-h-8 select-none items-center gap-2 rounded-sm px-2 py-1.5 text-base opacity-64 sm:min-h-7 sm:text-sm">
158 - {props.item.icon}
162 + <CommandPaletteTitleIcon>{props.item.icon}</CommandPaletteTitleIcon>
163 {props.item.description || props.item.threadContentMatch ? (
164 <span className="flex min-w-0 flex-1 flex-col">
165 <span className="flex min-w-0 items-center gap-1.5 text-sm text-foreground">
@@ -205,7 +209,7 @@ function CommandPaletteResultRow(props: {
209 props.onExecuteItem(props.item);
210 }}
211 >
208 - {props.item.icon}
212 + <CommandPaletteTitleIcon>{props.item.icon}</CommandPaletteTitleIcon>
213 {props.item.description || props.item.threadContentMatch ? (
214 <span className="flex min-w-0 flex-1 flex-col">
215 <span className="flex min-w-0 items-center gap-1.5 text-sm text-foreground">
apps/web/src/components/Sidebar.tsx
+1 -1
@@ -1006,7 +1006,7 @@ function SidebarThreadTooltip({
1006 {branchMismatch ? (
1007 <div className="flex min-w-0 items-start gap-2 text-warning">
1008 <CircleAlertIcon aria-hidden className="mt-0.5 size-3 shrink-0 stroke-current" />
1009 - <div className="min-w-0 flex-1 wrap-break-word leading-5">
1009 + <div className="min-w-0 flex-1 wrap-break-word">
1010 You're currently checked out on another branch.
1011 </div>
1012 </div>
apps/web/src/components/chat/ThreadDetailsPrRow.tsx
+1 -1
@@ -279,7 +279,7 @@ export function ThreadDetailsPrRow({
279 {detail.isDraft && conflicting ? (
280 <div className="flex min-w-0 items-start gap-2 text-destructive">
281 <TriangleAlertIcon aria-hidden className="mt-0.5 size-3 shrink-0 stroke-current" />
282 - <div className="min-w-0 flex-1 wrap-break-word leading-5">
282 + <div className="min-w-0 flex-1 wrap-break-word">
283 Merge conflicts with {detail.baseBranch}
284 </div>
285 </div>
apps/web/src/components/diffs/DiffCommentAnnotation.tsx
+1 -1
@@ -63,7 +63,7 @@ export function DiffCommentAnnotation({
63 contentEditable={false}
64 onPointerDown={(event) => event.stopPropagation()}
65 >
66 - <MessageCircle className="mt-0.5 size-3.5 shrink-0 text-primary/70" aria-hidden="true" />
66 + <MessageCircle className="size-3.5 h-5 shrink-0 text-primary/70" aria-hidden="true" />
67 <p className="min-w-0 flex-1 whitespace-pre-wrap text-sm leading-5">{displayedText}</p>
68 {onDelete ? (
69 <span className="-my-1 -mr-1 flex shrink-0 opacity-0 transition-opacity group-hover/comment:opacity-100 focus-within:opacity-100 max-sm:opacity-100">
apps/web/src/components/pullRequest/guide/GuideStop.tsx
+1 -1
@@ -249,7 +249,7 @@ export function GuideStop({
249 >
250 <MessageCircleQuestionIcon
251 aria-hidden
252 - className="mt-0.5 size-3.5 shrink-0 text-muted-foreground"
252 + className="size-3.5 h-lh shrink-0 text-muted-foreground"
253 />
254 <span className="sr-only">Ask an agent: </span>
255 <span>
apps/web/src/components/settings/DiagnosticsSettings.tsx
+7 -7
@@ -979,13 +979,13 @@ export function DiagnosticsSettingsPanel() {
979 <div className="space-y-2 border-t border-border/60 px-4 py-3 text-xs text-muted-foreground sm:px-5">
980 {processDiagnosticsError ? (
981 <div className="flex items-start gap-2 text-destructive">
982 - <AlertTriangleIcon className="mt-0.5 size-3.5 shrink-0" />
982 + <AlertTriangleIcon className="size-3.5 h-lh shrink-0" />
983 <span>{processDiagnosticsError.message}</span>
984 </div>
985 ) : null}
986 {processError ? (
987 <div className="flex items-start gap-2 text-destructive">
988 - <AlertTriangleIcon className="mt-0.5 size-3.5 shrink-0" />
988 + <AlertTriangleIcon className="size-3.5 h-lh shrink-0" />
989 <span>{processError}</span>
990 </div>
991 ) : null}
@@ -1051,13 +1051,13 @@ export function DiagnosticsSettingsPanel() {
1051 <div className="space-y-2 border-t border-border/60 px-4 py-3 text-xs text-muted-foreground sm:px-5">
1052 {processResourceError ? (
1053 <div className="flex items-start gap-2 text-destructive">
1054 - <AlertTriangleIcon className="mt-0.5 size-3.5 shrink-0" />
1054 + <AlertTriangleIcon className="size-3.5 h-lh shrink-0" />
1055 <span>{processResourceError.message}</span>
1056 </div>
1057 ) : null}
1058 {resourceError ? (
1059 <div className="flex items-start gap-2 text-destructive">
1060 - <AlertTriangleIcon className="mt-0.5 size-3.5 shrink-0" />
1060 + <AlertTriangleIcon className="size-3.5 h-lh shrink-0" />
1061 <span>{resourceError}</span>
1062 </div>
1063 ) : null}
@@ -1134,7 +1134,7 @@ export function DiagnosticsSettingsPanel() {
1134 <div className="space-y-2 border-t border-border/60 px-4 py-3 text-xs text-muted-foreground sm:px-5">
1135 {openLogsDirectoryError ? (
1136 <div className="flex items-start gap-2 text-destructive">
1137 - <AlertTriangleIcon className="mt-0.5 size-3.5 shrink-0" />
1137 + <AlertTriangleIcon className="size-3.5 h-lh shrink-0" />
1138 <span>{openLogsDirectoryError}</span>
1139 </div>
1140 ) : null}
@@ -1145,7 +1145,7 @@ export function DiagnosticsSettingsPanel() {
1145 traceDiagnosticsPartialFailure ? "text-warning-foreground" : "text-destructive",
1146 )}
1147 >
1148 - <AlertTriangleIcon className="mt-0.5 size-3.5 shrink-0" />
1148 + <AlertTriangleIcon className="size-3.5 h-lh shrink-0" />
1149 <span>
1150 {traceDiagnosticsPartialFailure
1151 ? `Some trace files could not be read, so diagnostics may be incomplete. ${traceDiagnosticsError.message}`
@@ -1155,7 +1155,7 @@ export function DiagnosticsSettingsPanel() {
1155 ) : null}
1156 {error ? (
1157 <div className="flex items-start gap-2 text-destructive">
1158 - <AlertTriangleIcon className="mt-0.5 size-3.5 shrink-0" />
1158 + <AlertTriangleIcon className="size-3.5 h-lh shrink-0" />
1159 <span>{error}</span>
1160 </div>
1161 ) : null}
apps/web/src/components/settings/ResourceTelemetryDiagnostics.tsx
+2 -2
@@ -1055,7 +1055,7 @@ export function ResourceTelemetryDiagnostics({
1055 </div>
1056 {telemetry.error ? (
1057 <div className="flex items-start gap-2 border-t border-destructive/20 bg-destructive/5 px-4 py-3 text-xs text-destructive sm:px-5">
1058 - <AlertTriangleIcon className="mt-0.5 size-3.5 shrink-0" />
1058 + <AlertTriangleIcon className="size-3.5 h-lh shrink-0" />
1059 <span>{telemetry.error}</span>
1060 </div>
1061 ) : null}
@@ -1233,7 +1233,7 @@ export function ResourceTelemetryDiagnostics({
1233 <div className="overflow-hidden rounded-2xl border border-border/70 bg-card shadow-xs/5">
1234 {history.error ? (
1235 <div className="flex items-start gap-2 border-b border-destructive/20 bg-destructive/5 px-4 py-3 text-xs text-destructive sm:px-5">
1236 - <AlertTriangleIcon className="mt-0.5 size-3.5 shrink-0" />
1236 + <AlertTriangleIcon className="size-3.5 h-lh shrink-0" />
1237 <span>{history.error}</span>
1238 </div>
1239 ) : null}
apps/web/src/components/settings/SettingsSidebarNav.tsx
+1 -1
@@ -104,7 +104,7 @@ const SETTINGS_NAV_ITEMS: ReadonlyArray<{
104
105 function SettingsSectionIcon({ to }: { to: SettingsPath }) {
106 const Icon = SETTINGS_SECTION_ICONS[to];
107 - return <Icon className="mt-0.5 size-3.5 shrink-0 text-sidebar-muted-foreground/60" />;
107 + return <Icon className="size-3.5 h-5 shrink-0 text-sidebar-muted-foreground/60" />;
108 }
109
110 export function SettingsSidebarNav({ pathname }: { pathname: string }) {
apps/web/src/components/ui/toast.tsx
+1 -1
@@ -239,7 +239,7 @@ function ToastDescriptionAndExpandable({
239 </div>
240 <MorphIcon
241 aria-hidden
242 - className="mt-0.5 size-3.5 shrink-0 text-muted-foreground opacity-80"
242 + className="size-3.5 h-lh shrink-0 text-muted-foreground opacity-80"
243 icon={open ? ChevronUp : ChevronDown}
244 strokeWidth={2.25}
245 />