fix DM background color for replies

This commit is contained in:
Nolan Lawson 2018-04-04 23:03:26 -07:00
parent f56f746477
commit 8197c9e773
2 changed files with 8 additions and 3 deletions

View file

@ -37,6 +37,10 @@
max-width: calc(100vw - 40px);
}
.compose-box.direct-reply {
background-color: var(--status-direct-background);
}
.compose-box.slim-size {
width: 540px;
max-width: calc(100vw - 60px);
@ -145,11 +149,12 @@
},
store: () => store,
computed: {
computedClassName: (overLimit, realm, size) => {
computedClassName: (overLimit, realm, size, postPrivacyKey, isReply) => {
return classname(
'compose-box',
overLimit && 'over-char-limit',
size === 'slim' && 'slim-size'
size === 'slim' && 'slim-size',
isReply && postPrivacyKey === 'direct' && 'direct-reply'
)
},
hideAndFadeIn: (hidden) => {

View file

@ -3,6 +3,7 @@
size="slim"
autoFocus="true"
hideBottomBorder="true"
isReply="true"
replyVisibility="{{visibility}}"
replySpoiler="{{spoilerText}}"
on:postedStatus="onPostedStatus()"
@ -11,7 +12,6 @@
<style>
.status-article-compose-box {
grid-area: compose;
background: var(--main-bg);
}
</style>
<script>