Skip to content

Commit

Permalink
[MA-11]: Minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
SaurabhSharma-884 committed Dec 12, 2024
1 parent 2cbb6ac commit c0ac920
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ const SwitchChannelSuggestion = React.forwardRef<HTMLLIElement, Props>((props, r
return (
<SuggestionContainer
ref={ref}
id={`switchChannel_${channel.id}`}
id={`switchChannel_${channel.type === Constants.DM_CHANNEL ? (channel as FakeDirectChannel).userId : channel.id}`}
data-testid={channel.name}
role='option'
aria-labelledby={`${name.toLowerCase().replaceAll(' ', '-')}-item-name`}
Expand Down
1 change: 1 addition & 0 deletions webapp/channels/src/sass/components/_suggestion-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
max-width: 100%;
max-height: 292px;
padding-bottom: 12px;
padding-left: 0;
border: 1px solid rgba(var(--center-channel-color-rgb), 0.16);
border-radius: 4px;
background-color: functions.v(center-channel-bg);
Expand Down

0 comments on commit c0ac920

Please sign in to comment.