mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-14 12:25:17 +00:00
Fix message styles (#6623)
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
parent
b5610a8bd5
commit
a85d1cc0d2
@ -200,6 +200,13 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.text-markup-view {
|
||||||
|
margin: 0;
|
||||||
|
|
||||||
|
p:first-child { margin-block-start: 0; }
|
||||||
|
p:last-child { margin-block-end: 0; }
|
||||||
|
}
|
||||||
|
|
||||||
@supports (selector(:has(.text-editor-image-container))) {
|
@supports (selector(:has(.text-editor-image-container))) {
|
||||||
p:has(> .text-editor-image-container) {
|
p:has(> .text-editor-image-container) {
|
||||||
user-select: none;
|
user-select: none;
|
||||||
|
@ -201,7 +201,9 @@
|
|||||||
{#if !isShort}
|
{#if !isShort}
|
||||||
<div class="header clear-mins">
|
<div class="header clear-mins">
|
||||||
{#if person}
|
{#if person}
|
||||||
<EmployeePresenter value={person} shouldShowAvatar={false} compact />
|
<div class="username">
|
||||||
|
<EmployeePresenter value={person} shouldShowAvatar={false} compact />
|
||||||
|
</div>
|
||||||
{:else}
|
{:else}
|
||||||
<div class="strong">
|
<div class="strong">
|
||||||
<Label label={core.string.System} />
|
<Label label={core.string.System} />
|
||||||
@ -420,4 +422,9 @@
|
|||||||
right: -0.375rem;
|
right: -0.375rem;
|
||||||
color: var(--content-color);
|
color: var(--content-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.username {
|
||||||
|
font-weight: 500;
|
||||||
|
margin-right: 0.25rem;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -195,6 +195,9 @@
|
|||||||
<ShowMore limit={compact ? 80 : undefined}>
|
<ShowMore limit={compact ? 80 : undefined}>
|
||||||
<div class="clear-mins">
|
<div class="clear-mins">
|
||||||
<MessageViewer message={value.message} />
|
<MessageViewer message={value.message} />
|
||||||
|
{#if (value.attachments ?? 0) > 0 || (value.inlineButtons ?? 0) > 0}
|
||||||
|
<div class="mt-2" />
|
||||||
|
{/if}
|
||||||
<AttachmentDocList {value} {attachments} imageSize={attachmentImageSize} {videoPreload} />
|
<AttachmentDocList {value} {attachments} imageSize={attachmentImageSize} {videoPreload} />
|
||||||
<InlineButtons {value} {inlineButtons} />
|
<InlineButtons {value} {inlineButtons} />
|
||||||
</div>
|
</div>
|
||||||
@ -202,6 +205,9 @@
|
|||||||
{:else}
|
{:else}
|
||||||
<div class="clear-mins">
|
<div class="clear-mins">
|
||||||
<MessageViewer message={value.message} />
|
<MessageViewer message={value.message} />
|
||||||
|
{#if (value.attachments ?? 0) > 0 || (value.inlineButtons ?? 0) > 0}
|
||||||
|
<div class="mt-2" />
|
||||||
|
{/if}
|
||||||
<AttachmentDocList {value} {attachments} imageSize={attachmentImageSize} {videoPreload} />
|
<AttachmentDocList {value} {attachments} imageSize={attachmentImageSize} {videoPreload} />
|
||||||
<InlineButtons {value} {inlineButtons} />
|
<InlineButtons {value} {inlineButtons} />
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user