From cc04ede6f2b82a2bf77516ea8dce770edc932470 Mon Sep 17 00:00:00 2001 From: Bastard Operator Date: Wed, 30 Dec 2020 12:04:02 +0100 Subject: [PATCH] Make all chat messages the same (no highlighted msg) + Put like icon to all messages --- src/routes/_actions/compose.js | 7 +- src/routes/_components/status/Status.html | 72 +++++++++---------- .../_components/status/StatusAuthorName.html | 6 +- .../_components/status/StatusContent.html | 6 -- .../_components/status/StatusDetails.html | 8 --- .../_components/status/StatusMentions.html | 7 +- src/routes/_components/status/StatusPoll.html | 12 ---- .../_components/status/StatusSpoiler.html | 12 +--- .../_components/status/StatusToolbar.html | 11 +-- .../virtualList/VirtualListItem.html | 1 - src/scss/themes/ozark.scss | 69 +++++++++--------- static/fedilove-no-react.js | 5 ++ 12 files changed, 82 insertions(+), 134 deletions(-) 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); - }