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

View file

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