TootBottomSheet: fix the margin of the main toot
All checks were successful
/ depoly (push) Successful in 1m22s

This commit is contained in:
thislight 2025-01-02 23:24:05 +08:00
parent 0c7cb920f5
commit 01b753841e
No known key found for this signature in database
GPG key ID: FCFE5192241CCD4E

View file

@ -173,26 +173,26 @@ const TootBottomSheet: Component = (props) => {
onChangeToot={ancestors.set} onChangeToot={ancestors.set}
/> />
<article> <Show when={toot()}>
<Show when={toot()}> <TootEnvProvider value={mainTootEnv}>
<TootEnvProvider value={mainTootEnv}> <RegularToot
<RegularToot id={`toot-${toot()!.id}`}
id={`toot-${toot()!.id}`} class={cards.card}
class={cards.card} style={{
style={{ "scroll-margin-top":
"scroll-margin-top": "calc(var(--scaffold-topbar-height) + 20px)",
"calc(var(--scaffold-topbar-height) + 20px)", cursor: "auto",
cursor: "auto", "user-select": "auto",
"user-select": "auto", "margin-top": "20px",
}} "margin-bottom": "20px",
status={toot()!} }}
actionable={!!actSession()} status={toot()!}
evaluated={true} actionable={!!actSession()}
onClick={handleMainTootClick} evaluated={true}
></RegularToot> onClick={handleMainTootClick}
</TootEnvProvider> ></RegularToot>
</Show> </TootEnvProvider>
</article> </Show>
<Show when={(session().account as Account).inf}> <Show when={(session().account as Account).inf}>
<TootComposer <TootComposer