Commit f90a439 1 parent a41aa3b commit f90a439 Copy full SHA for f90a439
File tree 6 files changed +17
-17
lines changed
6 files changed +17
-17
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div v-bind =" $props" class =" bg-dark-700 overflow-hidden flex items-center justify-center" >
3
- <Skeleton :enabled =" !url " class =" !h-full !w-full" >
4
- <img class =" cursor-pointer bg-dark-700 ring-1 w-full h-full object-cover" :src =" url " :alt =" alt"
3
+ <Skeleton :enabled =" !src " class =" !h-full !w-full" >
4
+ <img class =" cursor-pointer bg-dark-700 ring-1 w-full h-full object-cover" :src =" src " :alt =" alt"
5
5
:title =" alt" />
6
6
</Skeleton >
7
7
</div >
11
11
import type { HTMLAttributes } from " vue" ;
12
12
13
13
interface Props extends /* @vue-ignore */ HTMLAttributes {
14
- url ? : string ;
14
+ src ? : string ;
15
15
alt? : string ;
16
16
}
17
17
Original file line number Diff line number Diff line change 25
25
</div >
26
26
<!-- Content warning textbox -->
27
27
<div v-if =" cw !== null" class =" mb-4" >
28
- <input type =" text" placeholder =" Add a content warning"
28
+ <input type =" text" v-model = " cwContent " placeholder =" Add a content warning"
29
29
class =" w-full p-2 mt-1 text-sm prose prose-invert bg-dark-900 rounded focus:!ring-0 !ring-none !border-none !outline-none placeholder:text-zinc-500 appearance-none focus:!border-none focus:!outline-none" />
30
30
</div >
31
31
<div class =" flex flex-row gap-1 border-white/20" >
@@ -69,6 +69,7 @@ const respondingTo = ref<Status | null>(null);
69
69
const respondingType = ref <" reply" | " quote" | null >(null );
70
70
const me = useMe ();
71
71
const cw = ref (null as string | null );
72
+ const cwContent = ref (" " );
72
73
const markdown = ref (true );
73
74
74
75
const splashes = useConfig ().COMPOSER_SPLASHES ;
@@ -129,6 +130,8 @@ const send = async () => {
129
130
respondingType .value === " quote"
130
131
? respondingTo .value ?.id
131
132
: null ,
133
+ spoiler_text: cw ? cwContent .value .trim () : undefined ,
134
+ sensitive: !! cw ,
132
135
}),
133
136
})
134
137
.then (async (res ) => {
Original file line number Diff line number Diff line change 3
3
<div v-if =" me" class =" bg-dark-800 p-6 my-5 rounded ring-1 ring-white/5" >
4
4
<div class =" sm:flex sm:items-center sm:justify-between" >
5
5
<div class =" sm:flex sm:space-x-5" >
6
- <AvatarsCentered :url =" me.avatar"
6
+ <AvatarsCentered :src =" me.avatar"
7
7
class =" mx-auto shrink-0 size-20 rounded overflow-hidden ring-1 ring-white/10" />
8
8
<div class =" mt-4 text-center sm:mt-0 sm:pt-1 sm:text-left" >
9
9
<p class =" text-sm font-medium text-gray-300" >Welcome back,</p >
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div v-if =" small" class =" flex flex-row" >
3
3
<NuxtLink :href =" accountUrl" class =" shrink-0" >
4
- <AvatarsCentered :url =" note?.account.avatar" :alt =" `${note?.account.acct}'s avatar`"
4
+ <AvatarsCentered :src =" note?.account.avatar" :alt =" `${note?.account.acct}'s avatar`"
5
5
class =" size-6 rounded ring-1 ring-white/5" />
6
6
</NuxtLink >
7
7
<div class =" flex flex-col items-start justify-around ml-4 grow overflow-hidden" >
22
22
</div >
23
23
<div v-else class =" flex flex-row" >
24
24
<NuxtLink :href =" accountUrl" class =" shrink-0" >
25
- <AvatarsCentered :url =" note?.account.avatar" :alt =" `${note?.account.acct}'s avatar`"
25
+ <AvatarsCentered :src =" note?.account.avatar" :alt =" `${note?.account.acct}'s avatar`"
26
26
class =" h-12 w-12 rounded ring-1 ring-white/5" />
27
27
</NuxtLink >
28
28
<div class =" flex flex-col items-start justify-around ml-4 grow overflow-hidden" >
Original file line number Diff line number Diff line change 1
1
<template >
2
- <NuxtLink :href =" `/@${account?.acct}`"
3
- class =" mb-4 flex flex-row gap-2 items-center text-gray-300 opacity-70 line-clamp-1" >
2
+ <NuxtLink :href =" `/@${account?.acct}`" class =" mb-4 flex flex-row gap-2 items-center text-gray-300 opacity-70" >
4
3
<Skeleton :enabled =" !account" shape =" rect" class =" !h-6" :min-width =" 40" :max-width =" 100" width-unit =" %" >
5
4
<iconify-icon icon =" tabler:arrow-back-up" width =" 1.5rem" height =" 1.5rem" aria-hidden =" true" />
6
- <span class =" flex flex-row items-center gap-2 overflow-hidden flex-wrap break-all" >
7
- Replying to
8
- <AvatarsCentered v-if =" account?.avatar" :url =" account?.avatar" :alt =" `${account?.acct}'s avatar'`"
9
- class =" size-5 rounded inline-flex shrink-0 ring-1 ring-white/10" />
10
- <strong class =" line-clamp-1" >{{ account?.display_name || account?.acct }}</strong >
11
- </span >
5
+ <span class =" shrink-0" >Replying to</span >
6
+ <AvatarsCentered v-if =" account?.avatar" :src =" account?.avatar" :alt =" `${account?.acct}'s avatar'`"
7
+ class =" size-5 shrink-0 rounded ring-1 ring-white/10" />
8
+ <strong class =" line-clamp-1" >{{ account?.display_name || account?.acct }}</strong >
12
9
</Skeleton >
13
10
</NuxtLink >
14
11
</template >
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<ClientOnly >
3
3
<div class =" w-full ring-1 ring-inset ring-white/5 pb-10" >
4
- <AvatarsCentered :url =" account?.header" :alt =" `${account?.acct}'s header image'`"
4
+ <AvatarsCentered :src =" account?.header" :alt =" `${account?.acct}'s header image'`"
5
5
class =" w-full aspect-[8/3] border-b border-white/10 bg-dark-700" />
6
6
7
7
<div class =" flex items-start justify-between px-4 py-3" >
8
- <AvatarsCentered :url =" account?.avatar" :alt =" `${account?.acct}'s avatar'`"
8
+ <AvatarsCentered :src =" account?.avatar" :alt =" `${account?.acct}'s avatar'`"
9
9
class =" h-32 w-32 -mt-[4.5rem] z-10 shrink-0 rounded ring-2 ring-dark-800" />
10
10
11
11
<ClientOnly >
You can’t perform that action at this time.
0 commit comments