Skip to content

Commit 6ae36bd

Browse files
committed
fix: make sure icons in conversatioItem do not shrink
1 parent fd79bf0 commit 6ae36bd

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

stylesheets/_modules.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@
321321

322322
.module-conversation-list-item__header__name {
323323
flex-grow: 1;
324-
flex-shrink: 1;
324+
flex-shrink: 1000; // we need this to take all the shrinking instead of the ListItemIcons
325325
font-size: 14px;
326326
line-height: 18px;
327327

ts/components/leftpane/conversation-list-item/HeaderItem.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ const NotificationSettingIcon = () => {
3636
iconType="mute"
3737
iconColor={'var(--conversation-tab-text-color)'}
3838
iconSize="small"
39+
style={{ flexShrink: 0 }}
3940
/>
4041
);
4142
case 'mentions_only':
@@ -44,6 +45,7 @@ const NotificationSettingIcon = () => {
4445
iconType="bell"
4546
iconColor={'var(--conversation-tab-text-color)'}
4647
iconSize="small"
48+
style={{ flexShrink: 0 }}
4749
/>
4850
);
4951
default:
@@ -63,7 +65,12 @@ const PinIcon = () => {
6365
const isPinned = useIsPinned(conversationId);
6466

6567
return isPinned ? (
66-
<SessionIcon iconType="pin" iconColor={'var(--conversation-tab-text-color)'} iconSize="small" />
68+
<SessionIcon
69+
iconType="pin"
70+
iconColor={'var(--conversation-tab-text-color)'}
71+
iconSize="small"
72+
style={{ flexShrink: 0 }}
73+
/>
6774
) : null;
6875
};
6976

@@ -100,6 +107,7 @@ const MentionAtSymbol = styled.span`
100107
min-width: 16px;
101108
border-radius: 8px;
102109
cursor: pointer;
110+
flex-shrink: 0;
103111
104112
&:hover {
105113
filter: grayscale(0.7);

0 commit comments

Comments
 (0)