From 473ddfaa85d4a0f433d4d8c05e308596e7a37f2c Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Fri, 9 Feb 2018 22:55:11 -0800 Subject: [PATCH] add separate style for status-in-own-context --- routes/_components/Avatar.html | 5 + routes/_components/status/Status.html | 52 +++++++--- .../status/StatusAbsoluteDate.html | 37 +++++++ routes/_components/status/StatusAuthor.html | 99 ------------------- .../status/StatusAuthorHandle.html | 20 ++++ .../_components/status/StatusAuthorName.html | 57 +++++++++++ .../status/StatusRelativeDate.html | 43 ++++++++ routes/_components/status/StatusSidebar.html | 2 +- routes/_components/status/StatusSpoiler.html | 30 +++--- routes/_components/status/StatusToolbar.html | 5 +- 10 files changed, 225 insertions(+), 125 deletions(-) create mode 100644 routes/_components/status/StatusAbsoluteDate.html delete mode 100644 routes/_components/status/StatusAuthor.html create mode 100644 routes/_components/status/StatusAuthorHandle.html create mode 100644 routes/_components/status/StatusAuthorName.html create mode 100644 routes/_components/status/StatusRelativeDate.html diff --git a/routes/_components/Avatar.html b/routes/_components/Avatar.html index 8181217..b0ac208 100644 --- a/routes/_components/Avatar.html +++ b/routes/_components/Avatar.html @@ -18,6 +18,11 @@ height: 48px; } + :global(.avatar.size-medium) { + width: 64px; + height: 64px; + } + :global(.avatar.size-big) { width: 100px; height: 100px; diff --git a/routes/_components/status/Status.html b/routes/_components/status/Status.html index d84eb1d..846c9d9 100644 --- a/routes/_components/status/Status.html +++ b/routes/_components/status/Status.html @@ -5,10 +5,14 @@ {{#if (notification && (notification.type === 'reblog' || notification.type === 'favourite')) || status.reblog}} {{/if}} - - + + + {{#if !isStatusInOwnThread}} + + {{/if}} + {{#if originalStatus.spoiler_text}} - + {{/if}} {{#if !originalStatus.spoiler_text || spoilerShown}} @@ -16,7 +20,10 @@ {{#if originalStatus.media_attachments && originalStatus.media_attachments.length}} {{/if}} - + {{#if isStatusInOwnThread}} + + {{/if}} + + \ No newline at end of file diff --git a/routes/_components/status/StatusAuthor.html b/routes/_components/status/StatusAuthor.html deleted file mode 100644 index 0a8998e..0000000 --- a/routes/_components/status/StatusAuthor.html +++ /dev/null @@ -1,99 +0,0 @@ - - {{status.account.display_name || status.account.username}} - - - {{'@' + status.account.acct}} - -{{#if isStatusInOwnThread}} - -{{else}} - -{{/if}} - - \ No newline at end of file diff --git a/routes/_components/status/StatusAuthorHandle.html b/routes/_components/status/StatusAuthorHandle.html new file mode 100644 index 0000000..1398226 --- /dev/null +++ b/routes/_components/status/StatusAuthorHandle.html @@ -0,0 +1,20 @@ + + {{'@' + status.account.acct}} + + \ No newline at end of file diff --git a/routes/_components/status/StatusAuthorName.html b/routes/_components/status/StatusAuthorName.html new file mode 100644 index 0000000..b9dd738 --- /dev/null +++ b/routes/_components/status/StatusAuthorName.html @@ -0,0 +1,57 @@ + + {{status.account.display_name || status.account.username}} + + + \ No newline at end of file diff --git a/routes/_components/status/StatusRelativeDate.html b/routes/_components/status/StatusRelativeDate.html new file mode 100644 index 0000000..4cedfa2 --- /dev/null +++ b/routes/_components/status/StatusRelativeDate.html @@ -0,0 +1,43 @@ + + + + + \ No newline at end of file diff --git a/routes/_components/status/StatusSidebar.html b/routes/_components/status/StatusSidebar.html index fcb6da2..6f1e4d1 100644 --- a/routes/_components/status/StatusSidebar.html +++ b/routes/_components/status/StatusSidebar.html @@ -1,6 +1,6 @@ + size="{{isStatusInOwnThread ? 'medium' : 'small'}}" />