From 3e7ba4dfc340fd3c6f88563d81e8d4d7b4c4c7e4 Mon Sep 17 00:00:00 2001 From: levelorbit <172493156+levelorbit@users.noreply.github.com> Date: Fri, 13 Nov 2026 09:26:54 +0100 Subject: [PATCH 1/3] fix(web): icons draw one line weight at every size The global rule set a stroke width of 1.75 in lucide's 24-unit grid, so the drawn line depended on the icon's size: 0.88 px at 12 px, 1.02 px at 14 px and 1.17 px at 16 px. Icons of different sizes in one row did not match, and several icons carried one-off stroke overrides to compensate. Small icons now draw a constant 1.05 px line with a non-scaling stroke. Icons with a size class of 20 px or more scale the line with the icon so they are not hairlines. Hand-built SVGs that sit beside lucide icons opt in with class lucide and stroke-width="2", and the one-off overrides on timeline, toast and settings icons are removed. --- .../src/components/EnvironmentMachineIcon.tsx | 6 ++- .../chat/TimelinePendingApprovalRow.tsx | 2 +- .../chat/TimelineToolActivityIcon.tsx | 4 +- .../chat/TimelineUserMessageRow.tsx | 2 +- .../components/chat/TimelineWorkEntryRow.tsx | 2 +- .../components/chat/TimelineWorkGroupRows.tsx | 6 +-- .../src/components/chat/WorktreeSetupCard.tsx | 2 +- .../src/components/desktopUpdate.toast.tsx | 6 +-- .../settings/SettingsScopeSentence.tsx | 1 - .../components/settings/settingsLayout.tsx | 2 +- apps/web/src/components/ui/menu.tsx | 4 +- apps/web/src/components/ui/toast.tsx | 10 ++--- apps/web/src/contextMenuFallback.ts | 4 +- apps/web/src/index.css | 45 +++++++++++++++++-- 14 files changed, 64 insertions(+), 32 deletions(-) diff --git a/apps/web/src/components/EnvironmentMachineIcon.tsx b/apps/web/src/components/EnvironmentMachineIcon.tsx index 1609ed22b7dc7..f7b04be839cfd 100644 --- a/apps/web/src/components/EnvironmentMachineIcon.tsx +++ b/apps/web/src/components/EnvironmentMachineIcon.tsx @@ -1,9 +1,10 @@ import type { EnvironmentMachineKind } from "@t3tools/contracts"; import { CloudIcon, LaptopIcon, MonitorIcon, ServerIcon, type LucideProps } from "lucide-react"; import type { FunctionComponent, SVGProps } from "react"; +import { cn } from "~/lib/utils"; import { LinuxIcon } from "./Icons"; -function LucideLike(props: SVGProps) { +function LucideLike({ className, ...props }: SVGProps) { return ( ) { viewBox="0 0 24 24" fill="none" stroke="currentColor" - strokeWidth="1.75" + strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" {...props} + className={cn("lucide", className)} /> ); } diff --git a/apps/web/src/components/chat/TimelinePendingApprovalRow.tsx b/apps/web/src/components/chat/TimelinePendingApprovalRow.tsx index c425d560bf131..e455c2f2708cc 100644 --- a/apps/web/src/components/chat/TimelinePendingApprovalRow.tsx +++ b/apps/web/src/components/chat/TimelinePendingApprovalRow.tsx @@ -49,7 +49,7 @@ export const TimelinePendingApprovalRow = memo(function TimelinePendingApprovalR } diff --git a/apps/web/src/components/chat/TimelineToolActivityIcon.tsx b/apps/web/src/components/chat/TimelineToolActivityIcon.tsx index 26728be44497c..a0464173e1f04 100644 --- a/apps/web/src/components/chat/TimelineToolActivityIcon.tsx +++ b/apps/web/src/components/chat/TimelineToolActivityIcon.tsx @@ -62,10 +62,10 @@ function BrowserAppIcon({ className }: { className: string }) { viewBox="0 0 24 24" fill="none" stroke="currentColor" - strokeWidth="1.9" + strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" - className={className} + className={cn("lucide", className)} aria-hidden > diff --git a/apps/web/src/components/chat/TimelineUserMessageRow.tsx b/apps/web/src/components/chat/TimelineUserMessageRow.tsx index c4593d2f6c5e1..cbcbf56859b73 100644 --- a/apps/web/src/components/chat/TimelineUserMessageRow.tsx +++ b/apps/web/src/components/chat/TimelineUserMessageRow.tsx @@ -399,7 +399,7 @@ export function FoldedMessageHeader(props: { onClick={props.onToggle} className="flex w-full min-w-0 items-center gap-1.5 rounded-2xl px-3 py-2 text-left text-sm focus-visible:outline-2 focus-visible:outline-ring" > - + {props.label} {props.summary} diff --git a/apps/web/src/components/chat/TimelineWorkGroupRows.tsx b/apps/web/src/components/chat/TimelineWorkGroupRows.tsx index 2791c9b714901..f216eec705df0 100644 --- a/apps/web/src/components/chat/TimelineWorkGroupRows.tsx +++ b/apps/web/src/components/chat/TimelineWorkGroupRows.tsx @@ -478,7 +478,7 @@ function LiveActivityContent({ @@ -548,7 +548,7 @@ export function LiveWorkEntryTimelineRow({ @@ -641,7 +641,7 @@ function WorkGroupHeader(props: { } diff --git a/apps/web/src/components/chat/WorktreeSetupCard.tsx b/apps/web/src/components/chat/WorktreeSetupCard.tsx index 7b33b3a39e023..28d60970eae6a 100644 --- a/apps/web/src/components/chat/WorktreeSetupCard.tsx +++ b/apps/web/src/components/chat/WorktreeSetupCard.tsx @@ -64,7 +64,7 @@ function Elapsed({ } function StageIcon({ status }: { status: WorktreeSetupStage["status"] }) { - const className = "size-4 shrink-0 stroke-2"; + const className = "size-4 shrink-0"; switch (status) { case "done": return ; diff --git a/apps/web/src/components/desktopUpdate.toast.tsx b/apps/web/src/components/desktopUpdate.toast.tsx index 18817978bf3f1..27da0f252d90a 100644 --- a/apps/web/src/components/desktopUpdate.toast.tsx +++ b/apps/web/src/components/desktopUpdate.toast.tsx @@ -35,11 +35,7 @@ function ReleaseNotesLink({ type="button" > Read more - + ); } diff --git a/apps/web/src/components/settings/SettingsScopeSentence.tsx b/apps/web/src/components/settings/SettingsScopeSentence.tsx index f22844c8abc29..21f475c00fdc2 100644 --- a/apps/web/src/components/settings/SettingsScopeSentence.tsx +++ b/apps/web/src/components/settings/SettingsScopeSentence.tsx @@ -152,7 +152,6 @@ function ScopeMenu({ {label} diff --git a/apps/web/src/components/settings/settingsLayout.tsx b/apps/web/src/components/settings/settingsLayout.tsx index e5d555bf8f7c0..2c7816fdcf170 100644 --- a/apps/web/src/components/settings/settingsLayout.tsx +++ b/apps/web/src/components/settings/settingsLayout.tsx @@ -186,7 +186,7 @@ export function SettingsSearchTarget({ // Settings pickers reuse composer controls but match the bordered selects beside them. export const SETTINGS_PICKER_TRIGGER_CLASSNAME = - "min-w-0 max-w-none shrink-0 border-input bg-background font-normal text-foreground shadow-xs/5 hover:bg-accent/50 dark:bg-input/32 [&_svg[data-composer-control-chevron]]:stroke-[1.75] [&_svg[data-composer-control-chevron]]:opacity-70"; + "min-w-0 max-w-none shrink-0 border-input bg-background font-normal text-foreground shadow-xs/5 hover:bg-accent/50 dark:bg-input/32 [&_svg[data-composer-control-chevron]]:opacity-70"; export function PolicyTooltip({ children }: { readonly children: string }) { return ( diff --git a/apps/web/src/components/ui/menu.tsx b/apps/web/src/components/ui/menu.tsx index e2706d0da21bf..a10b298b90323 100644 --- a/apps/web/src/components/ui/menu.tsx +++ b/apps/web/src/components/ui/menu.tsx @@ -200,13 +200,13 @@ function MenuCheckboxItem({ className={cn("col-start-1", variant === "icon" && "-mx-0.5")} > {open ? ( - + ) : ( - + )} {open ? collapseLabel : expandLabel} @@ -276,13 +276,11 @@ function ToastDescriptionAndExpandable({ ) : ( )} @@ -680,7 +678,7 @@ function Toasts({ position }: { position: ToastPosition }) { } type="button" > - + - + * { + vector-effect: var(--icon-vector-effect); } } From 53bca9b809cc23f0a1efe7beca384181404997ae Mon Sep 17 00:00:00 2001 From: maria-rcks Date: Wed, 18 Nov 2026 12:58:53 +0000 Subject: [PATCH 2/3] style(web): format merged update toast icon --- apps/web/src/components/desktopUpdate.toast.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/apps/web/src/components/desktopUpdate.toast.tsx b/apps/web/src/components/desktopUpdate.toast.tsx index 0703374b05e96..eb80a86b11012 100644 --- a/apps/web/src/components/desktopUpdate.toast.tsx +++ b/apps/web/src/components/desktopUpdate.toast.tsx @@ -37,10 +37,7 @@ function ReleaseNotesLink({ type="button" > Read more - + ); } From a054523e02507ce7bccfbbbc30b95a1bed06a033 Mon Sep 17 00:00:00 2001 From: levelorbit <172493156+levelorbit@users.noreply.github.com> Date: Fri, 20 Nov 2026 09:06:59 +0100 Subject: [PATCH 3/3] apps/web/index: scale the line of size-11 icons like their neighbors The rule that grows the line with the icon listed size-5 through size-10 and size-12. A 44px icon would have kept the 1.05px line of a small icon while 40px and 48px icons scaled. No icon uses size-11 yet. --- apps/web/src/index.css | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/web/src/index.css b/apps/web/src/index.css index 4c5bf40e4a298..18d4a865ba2f1 100644 --- a/apps/web/src/index.css +++ b/apps/web/src/index.css @@ -1755,6 +1755,7 @@ body { [class*="size-8"], [class*="size-9"], [class*="size-10"], + [class*="size-11"], [class*="size-12"] ) ) {