[MM-52627] Only show the team/channel name on search items in the RHS (#23649)
* [MM-52627] Only show the team/channel name on search items in the RHS * Remove additional date separator * PR feedback
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
f4539bc65a
Коммит
19f33f332c
@@ -513,7 +513,7 @@ const PostComponent = (props: Props): JSX.Element => {
|
|||||||
className={props.location === 'SEARCH' ? 'search-item__container' : undefined}
|
className={props.location === 'SEARCH' ? 'search-item__container' : undefined}
|
||||||
data-testid={props.location === 'SEARCH' ? 'search-item-container' : undefined}
|
data-testid={props.location === 'SEARCH' ? 'search-item-container' : undefined}
|
||||||
>
|
>
|
||||||
{(isSearchResultItem || (props.location !== Locations.CENTER && props.isPinnedPosts) || props.isFlagged) && <DateSeparator date={currentPostDay}/>}
|
{(isSearchResultItem || (props.location !== Locations.CENTER && (props.isPinnedPosts || props.isFlaggedPosts))) && <DateSeparator date={currentPostDay}/>}
|
||||||
<PostAriaLabelDiv
|
<PostAriaLabelDiv
|
||||||
ref={postRef}
|
ref={postRef}
|
||||||
role='listitem'
|
role='listitem'
|
||||||
@@ -531,9 +531,11 @@ const PostComponent = (props: Props): JSX.Element => {
|
|||||||
className='search-channel__name__container'
|
className='search-channel__name__container'
|
||||||
aria-hidden='true'
|
aria-hidden='true'
|
||||||
>
|
>
|
||||||
|
{Boolean(isSearchResultItem) &&
|
||||||
<span className='search-channel__name'>
|
<span className='search-channel__name'>
|
||||||
{channelDisplayName}
|
{channelDisplayName}
|
||||||
</span>
|
</span>
|
||||||
|
}
|
||||||
{props.channelIsArchived &&
|
{props.channelIsArchived &&
|
||||||
<span className='search-channel__archived'>
|
<span className='search-channel__archived'>
|
||||||
<ArchiveIcon className='icon icon__archive channel-header-archived-icon svg-text-color'/>
|
<ArchiveIcon className='icon icon__archive channel-header-archived-icon svg-text-color'/>
|
||||||
@@ -543,7 +545,7 @@ const PostComponent = (props: Props): JSX.Element => {
|
|||||||
/>
|
/>
|
||||||
</span>
|
</span>
|
||||||
}
|
}
|
||||||
{Boolean(props.teamDisplayName) &&
|
{Boolean(isSearchResultItem) && Boolean(props.teamDisplayName) &&
|
||||||
<span className='search-team__name'>
|
<span className='search-team__name'>
|
||||||
{props.teamDisplayName}
|
{props.teamDisplayName}
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user