File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -158,6 +158,8 @@ const isExceedingCharacterLimit = computed(() => {
158
158
159
159
const postLanguageDisplay = computed (() => languagesNameList .find (i => i .code === (draft .value .params .language || preferredLanguage ))?.nativeName )
160
160
161
+ const isDM = computed (() => draft .value .params .visibility === ' direct' )
162
+
161
163
async function handlePaste(evt : ClipboardEvent ) {
162
164
const files = evt .clipboardData ?.files
163
165
if (! files || files .length === 0 )
@@ -281,7 +283,10 @@ onDeactivated(() => {
281
283
<EditorContent
282
284
:editor =" editor"
283
285
flex max-w-full
284
- :class =" shouldExpanded ? 'min-h-30 md:max-h-[calc(100vh-200px)] sm:max-h-[calc(100vh-400px)] max-h-35 of-y-auto overscroll-contain' : ''"
286
+ :class =" {
287
+ 'min-h-30 md:max-h-[calc(100vh-200px)] sm:max-h-[calc(100vh-400px)] max-h-35 of-y-auto overscroll-contain': shouldExpanded,
288
+ 'pt2 pb0.5 px3.5 bg-dm rounded-4 me--1 ms--1 mt--1': isDM,
289
+ }"
285
290
@keydown =" stopQuestionMarkPropagation"
286
291
@keydown.esc.prevent =" editor?.commands.blur()"
287
292
/>
You can’t perform that action at this time.
0 commit comments