Skip to content

Commit

Permalink
fix: adjust background spacing in direct message (#2764)
Browse files Browse the repository at this point in the history
  • Loading branch information
shuuji3 authored Apr 5, 2024
1 parent 9ff5528 commit 839aa52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions components/publish/PublishWidget.vue
Original file line number Diff line number Diff line change
Expand Up @@ -279,13 +279,13 @@ onDeactivated(() => {
</ol>
</CommonErrorMessage>
<div relative flex-1 flex flex-col>
<div relative flex-1 flex flex-col min-h-30>
<EditorContent
:editor="editor"
flex max-w-full
:class="{
'min-h-30 md:max-h-[calc(100vh-200px)] sm:max-h-[calc(100vh-400px)] max-h-35 of-y-auto overscroll-contain': shouldExpanded,
'pt2 pb0.5 px3.5 bg-dm rounded-4 me--1 ms--1 mt--1': isDM,
'md:max-h-[calc(100vh-200px)] sm:max-h-[calc(100vh-400px)] max-h-35 of-y-auto overscroll-contain': shouldExpanded,
'py2 px3.5 bg-dm rounded-4 me--1 ms--1 mt--1': isDM,
}"
@keydown="stopQuestionMarkPropagation"
@keydown.esc.prevent="editor?.commands.blur()"
Expand Down
3 changes: 1 addition & 2 deletions components/status/StatusContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const allowEmbeddedMedia = computed(() => status.card?.html && embeddedMediaPref
<div
space-y-3
:class="{
'pt2 pb0.5 px3.5 bg-dm rounded-4 me--1': isDM,
'py2 px3.5 bg-dm rounded-4 me--1': isDM,
'ms--3.5 mt--1 ms--1': isDM && context !== 'details',
}"
>
Expand Down Expand Up @@ -68,7 +68,6 @@ const allowEmbeddedMedia = computed(() => status.card?.html && embeddedMediaPref
:status="status.reblog" border="~ rounded"
:actions="false"
/>
<div v-if="isDM" />
</StatusSpoiler>
</div>
</template>

0 comments on commit 839aa52

Please sign in to comment.