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', () => {
|
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 PriorityLabels from 'components/advanced_text_editor/priority_labels';
|
||||||
import FilePreview from 'components/file_preview';
|
import FilePreview from 'components/file_preview';
|
||||||
import Markdown from 'components/markdown';
|
import Markdown from 'components/markdown';
|
||||||
|
import ShowMore from 'components/post_view/show_more';
|
||||||
import ProfilePicture from 'components/profile_picture';
|
import ProfilePicture from 'components/profile_picture';
|
||||||
|
|
||||||
import {imageURLForUser, handleFormattedTextClick} from 'utils/utils';
|
import {imageURLForUser, handleFormattedTextClick} from 'utils/utils';
|
||||||
@@ -66,37 +67,43 @@ function PanelBody({
|
|||||||
src={imageURLForUser(userId)}
|
src={imageURLForUser(userId)}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div className='DraftPanelBody__post_body'>
|
||||||
onClick={handleClick}
|
<ShowMore
|
||||||
className='post__content'
|
text={message}
|
||||||
>
|
>
|
||||||
<div className='DraftPanelBody__right'>
|
<div
|
||||||
<div className='post__header'>
|
onClick={handleClick}
|
||||||
<strong>{displayName}</strong>
|
className='post__content'
|
||||||
{priority && (
|
>
|
||||||
<PriorityLabels
|
<div className='DraftPanelBody__right'>
|
||||||
canRemove={false}
|
<div className='post__header'>
|
||||||
padding='0 0 0 8px'
|
<strong>{displayName}</strong>
|
||||||
hasError={false}
|
{priority && (
|
||||||
persistentNotifications={priority.persistent_notifications}
|
<PriorityLabels
|
||||||
priority={priority.priority}
|
canRemove={false}
|
||||||
requestedAck={priority.requested_ack}
|
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>
|
||||||
<div className='post__body'>
|
</ShowMore>
|
||||||
<Markdown
|
{(fileInfos.length > 0 || uploadsInProgress?.length > 0) && (
|
||||||
options={OPTIONS}
|
<FilePreview
|
||||||
message={message}
|
fileInfos={fileInfos}
|
||||||
/>
|
uploadsInProgress={uploadsInProgress}
|
||||||
</div>
|
/>
|
||||||
{(fileInfos.length > 0 || uploadsInProgress?.length > 0) && (
|
)}
|
||||||
<FilePreview
|
|
||||||
fileInfos={fileInfos}
|
|
||||||
uploadsInProgress={uploadsInProgress}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user