diff --git a/src/routes/_actions/compose.js b/src/routes/_actions/compose.js index 8060c390..e9922854 100644 --- a/src/routes/_actions/compose.js +++ b/src/routes/_actions/compose.js @@ -105,5 +105,10 @@ export function setReplyVisibility (realm, replyVisibility) { } if (typeof window !== "undefined") { - window.fediloveFunctions.postStatus = postStatus; + const _this = setInterval(function() { + if (window.fediloveFunctions != undefined) { + window.fediloveFunctions.postStatus = postStatus; + clearInterval(_this); + } + }, 300); } diff --git a/src/routes/_components/status/Status.html b/src/routes/_components/status/Status.html index 66f3b57d..ab8f5436 100644 --- a/src/routes/_components/status/Status.html +++ b/src/routes/_components/status/Status.html @@ -12,9 +12,7 @@ {/if} - {#if !isStatusInOwnThread} - - {/if} + {#if spoilerText} @@ -34,10 +32,15 @@ {#if showPoll && (showContent || preloadHiddenContent)} {/if} - {#if isStatusInOwnThread} - - {/if} + {#if replyShown} {/if} @@ -80,24 +83,6 @@ background-color: var(--status-direct-background); } - .status-article.status-in-own-thread { - grid-template-areas: - "sidebar author-name" - "sidebar author-handle" - "spoiler spoiler" - "spoiler-btn spoiler-btn" - "mentions mentions" - "content content" - "card card" - "media-grp media-grp" - "media media" - "poll poll" - "details details" - "toolbar toolbar" - "compose compose"; - grid-template-columns: min-content 1fr; - grid-template-rows: repeat(7, max-content); - }