зеркало из https://github.com/nextcloud/spreed.git
Make system messages light again
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Родитель
dd46e4eedf
Коммит
c004345a48
|
@ -44,7 +44,7 @@ the main body of the message as well as a quote.
|
|||
<RichText :text="message" :arguments="richParameters" :autolink="true" />
|
||||
<CallButton />
|
||||
</div>
|
||||
<div v-else class="message__main__text">
|
||||
<div v-else class="message__main__text" :class="{'system-message': isSystemMessage}">
|
||||
<Quote v-if="parent" v-bind="quote" />
|
||||
<RichText :text="message" :arguments="richParameters" :autolink="true" />
|
||||
</div>
|
||||
|
@ -207,6 +207,10 @@ export default {
|
|||
return this.isReplyable
|
||||
},
|
||||
|
||||
isSystemMessage() {
|
||||
return this.systemMessage !== ''
|
||||
},
|
||||
|
||||
messageTime() {
|
||||
return OC.Util.formatDate(this.timestamp * 1000, 'LT')
|
||||
},
|
||||
|
@ -347,6 +351,10 @@ export default {
|
|||
text-align: center;
|
||||
}
|
||||
|
||||
&.system-message {
|
||||
color: var(--color-text-maxcontrast);
|
||||
}
|
||||
|
||||
::v-deep .rich-text--wrapper {
|
||||
white-space: pre-wrap;
|
||||
word-break: break-word;
|
||||
|
|
Загрузка…
Ссылка в новой задаче