Skip to content

Commit 1a37ee3

Browse files
authored
Normalize desktop icon sizing (#1088)
1 parent 771086f commit 1a37ee3

20 files changed

Lines changed: 26 additions & 26 deletions

‎desktop/src/features/channels/ui/AddChannelBotPersonasSection.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ export function AddChannelBotPersonasSection({
180180
: "bg-muted/60 text-muted-foreground",
181181
)}
182182
>
183-
<Check className="h-2.5 w-2.5" />
183+
<Check className="h-4 w-4" />
184184
In channel
185185
</span>
186186
) : null}

‎desktop/src/features/channels/ui/AddChannelBotTeamsSection.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export function AddChannelBotTeamsSection({
130130
: "bg-muted/60 text-muted-foreground",
131131
)}
132132
>
133-
<Check className="h-2.5 w-2.5" />
133+
<Check className="h-4 w-4" />
134134
{allInChannel
135135
? "All in channel"
136136
: `${inChannelCount} in channel`}
@@ -165,7 +165,7 @@ export function AddChannelBotTeamsSection({
165165
{persona.displayName}
166166
</span>
167167
{personaInChannel ? (
168-
<Check className="h-2.5 w-2.5 text-emerald-300" />
168+
<Check className="h-4 w-4 text-emerald-300" />
169169
) : null}
170170
</div>
171171
);

‎desktop/src/features/channels/ui/MembersSidebar.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ function AddMemberSearchResultRow({
730730
{formatAddCandidateName(user)}
731731
</span>
732732
<span className="inline-flex shrink-0 items-center gap-1 text-xs text-muted-foreground">
733-
<Bot aria-hidden="true" className="h-3 w-3" />
733+
<Bot aria-hidden="true" className="h-4 w-4" />
734734
agent
735735
</span>
736736
</div>

‎desktop/src/features/channels/ui/MembersSidebarMemberCard.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export function MembersSidebarMemberCard({
148148
{memberLabel}
149149
</span>
150150
<span className="inline-flex shrink-0 items-center gap-1 text-xs text-muted-foreground">
151-
<Bot aria-hidden="true" className="h-3 w-3" />
151+
<Bot aria-hidden="true" className="h-4 w-4" />
152152
{roleLabel}
153153
</span>
154154
</div>

‎desktop/src/features/home/ui/FeedSection.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export function FeedSection({
143143
return (
144144
<section>
145145
<div className="flex items-center gap-2 pb-2">
146-
<Icon className="h-3.5 w-3.5 text-muted-foreground" />
146+
<Icon className="h-4 w-4 text-muted-foreground" />
147147
<h2 className="text-xs font-semibold uppercase tracking-wide text-muted-foreground">
148148
{title}
149149
</h2>

‎desktop/src/features/huddle/components/MicControls.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,10 @@ export function MicControls({
185185
style={micMeterBarStyle(rightBarHeight)}
186186
/>
187187
</span>
188-
<ChevronUp className="hidden h-3 w-3 group-data-[state=open]:block group-focus-visible:block group-hover:block" />
188+
<ChevronUp className="hidden h-4 w-4 group-data-[state=open]:block group-focus-visible:block group-hover:block" />
189189
</span>
190190
) : (
191-
<ChevronUp className="h-3 w-3" />
191+
<ChevronUp className="h-4 w-4" />
192192
)}
193193
</Button>
194194
</PopoverTrigger>

‎desktop/src/features/huddle/components/ParticipantList.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export function HuddleParticipantsControl({
117117
type="button"
118118
variant="ghost"
119119
>
120-
<X className="h-3.5 w-3.5" />
120+
<X className="h-4 w-4" />
121121
</Button>
122122
)}
123123
</li>
@@ -159,7 +159,7 @@ function HexAvatar({
159159
color: "#fff",
160160
}}
161161
>
162-
{size === "lg" ? shortId : <UsersRound className="h-3.5 w-3.5" />}
162+
{size === "lg" ? shortId : <UsersRound className="h-4 w-4" />}
163163
</div>
164164
);
165165
}

‎desktop/src/features/messages/ui/ComposerAttachments.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export const ComposerAttachments = React.memo(function ComposerAttachments({
181181
className="pointer-events-none absolute inset-0 flex items-center justify-center rounded-2xl bg-background/55 text-foreground/70 backdrop-blur-[1px]"
182182
data-composer-media-spoiler=""
183183
>
184-
<HatGlasses className="h-5 w-5" />
184+
<HatGlasses className="h-4 w-4" />
185185
</div>
186186
) : null}
187187
</div>

‎desktop/src/features/messages/ui/MessageThreadPanel.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ export function MessageThreadPanel({
514514
{!isAtBottom ? (
515515
<div className="pointer-events-none absolute inset-x-0 bottom-36 z-20 flex justify-center px-4">
516516
<Button
517-
className="pointer-events-auto h-7 min-h-7 gap-1.5 rounded-full border-border/50 bg-background/85 px-2.5 text-2xs font-medium text-muted-foreground shadow-xs backdrop-blur-sm hover:bg-muted/70 hover:text-foreground [&_svg]:size-3.5"
517+
className="pointer-events-auto h-7 min-h-7 gap-1.5 rounded-full border-border/50 bg-background/85 px-2.5 text-2xs font-medium text-muted-foreground shadow-xs backdrop-blur-sm hover:bg-muted/70 hover:text-foreground [&_svg]:size-4"
518518
data-testid="thread-scroll-to-latest"
519519
onClick={() => scrollToBottom("smooth")}
520520
size="sm"

‎desktop/src/features/messages/ui/MessageTimeline.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ export const MessageTimeline = React.memo(function MessageTimeline({
279279
)}
280280
>
281281
<Button
282-
className="pointer-events-auto h-7 min-h-7 gap-1.5 rounded-full border-primary/40 bg-primary/10 px-2.5 text-2xs font-medium text-primary shadow-xs backdrop-blur-sm hover:bg-primary/20 [&_svg]:size-3.5"
282+
className="pointer-events-auto h-7 min-h-7 gap-1.5 rounded-full border-primary/40 bg-primary/10 px-2.5 text-2xs font-medium text-primary shadow-xs backdrop-blur-sm hover:bg-primary/20 [&_svg]:size-4"
283283
data-testid="message-unread-pill"
284284
onClick={handleJumpToOldestUnread}
285285
size="sm"
@@ -402,7 +402,7 @@ export const MessageTimeline = React.memo(function MessageTimeline({
402402
"flex shrink-0 items-center justify-center rounded-full bg-muted/70 text-muted-foreground",
403403
hasDescription
404404
? "h-12 w-12 [&_svg]:h-6 [&_svg]:w-6"
405-
: "h-10 w-10 [&_svg]:h-5 [&_svg]:w-5",
405+
: "h-10 w-10 [&_svg]:h-4 [&_svg]:w-4",
406406
)}
407407
data-testid={
408408
action.testId

0 commit comments

Comments
 (0)