From 31570549946d8aa692cc874953297fbafdb69252 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sun, 4 Feb 2018 10:23:18 -0800 Subject: [PATCH] refactor out StatusAuthor.html --- routes/_components/status/Status.html | 85 ++------------------ routes/_components/status/StatusAuthor.html | 87 +++++++++++++++++++++ 2 files changed, 93 insertions(+), 79 deletions(-) create mode 100644 routes/_components/status/StatusAuthor.html diff --git a/routes/_components/status/Status.html b/routes/_components/status/Status.html index 2482caa..ab77d29 100644 --- a/routes/_components/status/Status.html +++ b/routes/_components/status/Status.html @@ -5,23 +5,7 @@ {{#if (notification && (notification.type === 'reblog' || notification.type === 'favourite')) || status.reblog}} {{/if}} -
- - {{originalAccount.display_name || originalAccount.username}} - - - {{'@' + originalAccount.acct}} - - {{#if isStatusInContext}} - - {{else}} - - {{/if}} -
+ {{#if originalStatus.spoiler_text}}
{{originalStatus.spoiler_text}}
@@ -92,53 +76,6 @@ font-size: 1.1em; } - .status-author { - grid-area: status-author; - display: flex; - align-items: center; - margin: 0 10px 0 5px; - font-size: 1.1em; - min-width: 0; - } - - :global(.status-author a, .status-author a:visited, .status-author a:hover, .status-author .status-author-handle) { - color: var(--deemphasized-text-color); - } - - :global(.status-author .status-author-name) { - min-width: 0; - flex-shrink: 1; - color: var(--body-text-color); - font-weight: 600; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - } - - :global(.status-author .status-author-name:hover) { - color: var(--body-text-color); - } - - .status-author-handle { - min-width: 0; - flex: 1; - margin-left: 5px; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - } - - :global(.status-author-date) { - color: var(--deemphasized-text-color); - flex-shrink: 1; - text-align: right; - margin-left: 5px; - white-space: nowrap; - } - :global(.status-author-date:hover) { - color: var(--deemphasized-text-color); - } - .status-content { margin: 10px 10px 10px 5px; grid-area: status-content; @@ -181,15 +118,13 @@ \ No newline at end of file