TootComposer: add toolbar & adjust layout
All checks were successful
/ depoly (push) Successful in 1m17s

This commit is contained in:
thislight 2024-11-09 20:28:46 +08:00
parent 44860a5bb2
commit 44c9e55928
No known key found for this signature in database
GPG key ID: FCFE5192241CCD4E
6 changed files with 192 additions and 56 deletions

View file

@ -46,7 +46,6 @@ const TootBottomSheet: Component = (props) => {
}>();
const navigate = useNavigate();
const time = createTimeSource();
const [isInTyping, setInTyping] = createSignal(false);
const acctText = () => decodeURIComponent(params.acct);
const session = useSessionForAcctStr(acctText);
@ -70,12 +69,6 @@ const TootBottomSheet: Component = (props) => {
return tootId;
});
createEffect(() => {
if (location.state?.tootReply) {
setInTyping(true);
}
});
const [tootContextErrorUncaught, { refetch: refetchContext }] =
createResource(
() => [session().client, params.id] as const,
@ -282,8 +275,6 @@ const TootBottomSheet: Component = (props) => {
<Show when={session()!.account}>
<TootComposer
isTyping={isInTyping()}
onTypingChange={setInTyping}
mentions={defaultMentions()}
profile={session().account!}
replyToDisplayName={toot()?.account?.displayName || ""}