From eeff84a58720dfd4ea7f88d5c7a79464066bc579 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sat, 9 Jun 2018 15:04:47 -0700 Subject: [PATCH] Fix text overflow on status headers (#383) * Fix text overflow on status headers * fix tests * really fix tests --- routes/_components/status/StatusHeader.html | 77 +++++++++++++-------- tests/utils.js | 6 +- 2 files changed, 52 insertions(+), 31 deletions(-) diff --git a/routes/_components/status/StatusHeader.html b/routes/_components/status/StatusHeader.html index 3cb60d8..66d4f0f 100644 --- a/routes/_components/status/StatusHeader.html +++ b/routes/_components/status/StatusHeader.html @@ -5,27 +5,33 @@ - + +
{#if timelineType === 'pinned'} - Pinned toot + + Pinned toot + {:else} {account.display_name || account.username} - {#if notification && notification.type === 'reblog'} - boosted your status - {:elseif notification && notification.type === 'favourite'} - favorited your status - {:elseif notification && notification.type === 'follow'} - followed you - {:elseif status && status.reblog} - boosted - {/if} {/if} - + + + {#if notification && notification.type === 'reblog'} + boosted your status + {:elseif notification && notification.type === 'favourite'} + favorited your status + {:elseif notification && notification.type === 'follow'} + followed you + {:elseif status && status.reblog} + boosted + {/if} + +