Skip to content

Commit 150e10c

Browse files
authored
Merge pull request #1446 from session-foundation/fix/ses-3891/unread_message_count
fix: unread message count position in action panel
2 parents 5ce6f5c + 153272e commit 150e10c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

ts/components/icon/SessionNotificationCount.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const StyledCountContainer = styled.div<{ $centeredOnTop: boolean }>`
1414
padding: ${props => (props.$centeredOnTop ? '1px 3px 0' : '1px 4px')};
1515
1616
position: absolute;
17-
top: ${props => (props.$centeredOnTop ? '-10px' : '27px')};
17+
top: ${props => (props.$centeredOnTop ? '-10px' : '22px')};
1818
left: ${props => (props.$centeredOnTop ? '50%' : '28px')};
1919
2020
font-size: var(--font-size-xs);

ts/components/leftpane/ActionsPanel.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@ const Section = (props: { type: SectionType }) => {
143143
{...buttonProps}
144144
dataTestId="message-section"
145145
unicode={LUCIDE_ICONS_UNICODE.MESSAGE_SQUARE}
146+
style={{
147+
position: 'relative',
148+
}}
146149
>
147150
{Boolean(unreadToShow) && <SessionNotificationCount count={unreadToShow} />}
148151
</SessionLucideIconButton>

0 commit comments

Comments
 (0)