feat: wider DMs (#675)

zio/stable
patak 2023-01-01 20:20:13 +01:00 committed by GitHub
parent 016da2e8c0
commit f0db2e9013
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -149,7 +149,7 @@ const isDM = $computed(() => status.visibility === 'direct')
</div> </div>
<StatusActionsMore v-if="actions !== false" :status="status" me--2 /> <StatusActionsMore v-if="actions !== false" :status="status" me--2 />
</div> </div>
<StatusContent :status="status" :context="context" mb2 :class="{ mt2: isDM }" /> <StatusContent :status="status" :context="context" mb2 :class="{ 'mt-2 mb1': isDM }" />
<div> <div>
<StatusActions v-if="(actions !== false && !isZenMode)" :status="status" /> <StatusActions v-if="(actions !== false && !isZenMode)" :status="status" />
</div> </div>

View File

@ -23,8 +23,8 @@ const isFiltered = $computed(() => filterPhrase && (context && context !== 'deta
<div <div
space-y-3 space-y-3
:class="{ :class="{
'pt2 pb0.5 px3.5 border-1 rounded-3 rounded-bs-is-none': isDM, 'pt2 pb0.5 px3.5 bg-fade border-1 border-primary-light rounded-5 mx--1': isDM,
'bg-fade border-primary-light': isDM, 'ms--3.5 mt--1': isDM && context !== 'details',
}" }"
> >
<StatusBody v-if="!isFiltered && status.sensitive && !status.spoilerText" :status="status" :with-action="!isDetails" :class="isDetails ? 'text-xl' : ''" /> <StatusBody v-if="!isFiltered && status.sensitive && !status.spoilerText" :status="status" :with-action="!isDetails" :class="isDetails ? 'text-xl' : ''" />