Scheudled post show more (#29226)
* Added show more to long draft adn scheduled post * Added show more to long draft adn scheduled post * Fixed layout * Updated snapshots
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
b0ee1627f0
Коммит
da937b0598
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
@@ -70,6 +70,12 @@ describe('components/drafts/panel/panel_body', () => {
|
||||
},
|
||||
},
|
||||
},
|
||||
views: {
|
||||
rhs: {
|
||||
isSidebarExpanded: false,
|
||||
isSidebarOpen: false,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
it('should match snapshot', () => {
|
||||
|
||||
@@ -12,6 +12,7 @@ import {getCurrentRelativeTeamUrl} from 'mattermost-redux/selectors/entities/tea
|
||||
import PriorityLabels from 'components/advanced_text_editor/priority_labels';
|
||||
import FilePreview from 'components/file_preview';
|
||||
import Markdown from 'components/markdown';
|
||||
import ShowMore from 'components/post_view/show_more';
|
||||
import ProfilePicture from 'components/profile_picture';
|
||||
|
||||
import {imageURLForUser, handleFormattedTextClick} from 'utils/utils';
|
||||
@@ -66,37 +67,43 @@ function PanelBody({
|
||||
src={imageURLForUser(userId)}
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
onClick={handleClick}
|
||||
className='post__content'
|
||||
>
|
||||
<div className='DraftPanelBody__right'>
|
||||
<div className='post__header'>
|
||||
<strong>{displayName}</strong>
|
||||
{priority && (
|
||||
<PriorityLabels
|
||||
canRemove={false}
|
||||
padding='0 0 0 8px'
|
||||
hasError={false}
|
||||
persistentNotifications={priority.persistent_notifications}
|
||||
priority={priority.priority}
|
||||
requestedAck={priority.requested_ack}
|
||||
/>
|
||||
)}
|
||||
<div className='DraftPanelBody__post_body'>
|
||||
<ShowMore
|
||||
text={message}
|
||||
>
|
||||
<div
|
||||
onClick={handleClick}
|
||||
className='post__content'
|
||||
>
|
||||
<div className='DraftPanelBody__right'>
|
||||
<div className='post__header'>
|
||||
<strong>{displayName}</strong>
|
||||
{priority && (
|
||||
<PriorityLabels
|
||||
canRemove={false}
|
||||
padding='0 0 0 8px'
|
||||
hasError={false}
|
||||
persistentNotifications={priority.persistent_notifications}
|
||||
priority={priority.priority}
|
||||
requestedAck={priority.requested_ack}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
<div className='post__body'>
|
||||
<Markdown
|
||||
options={OPTIONS}
|
||||
message={message}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className='post__body'>
|
||||
<Markdown
|
||||
options={OPTIONS}
|
||||
message={message}
|
||||
/>
|
||||
</div>
|
||||
{(fileInfos.length > 0 || uploadsInProgress?.length > 0) && (
|
||||
<FilePreview
|
||||
fileInfos={fileInfos}
|
||||
uploadsInProgress={uploadsInProgress}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
</ShowMore>
|
||||
{(fileInfos.length > 0 || uploadsInProgress?.length > 0) && (
|
||||
<FilePreview
|
||||
fileInfos={fileInfos}
|
||||
uploadsInProgress={uploadsInProgress}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
Ссылка в новой задаче
Block a user