planiverse

A minimalist, no-JS front-end for Mastodon.
git clone https://git.mulligrubs.me/planiverse
Log | Files | Refs | README | LICENSE

commit 014228edc65c6270470559608cc83cdab84fae2e
parent f8732716758c21995aff9157f43a512be438df83
Author: St John Karp <stjohn@fuzzjunket.com>
Date:   Mon,  8 Oct 2018 10:04:31 -0700

Wrap status contents in a div

Statuses don't always start/end with block elements, which can
cause them to join up with the previous or next lines of text.
I've wrapped them in a div to make sure they're properly separated.

Diffstat:
Mresources/views/status.blade.php | 18++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/resources/views/status.blade.php b/resources/views/status.blade.php @@ -7,17 +7,19 @@ ]) @endcomponent - @if ($status['spoiler_text'] !== '') - <details> - <summary>{{ $status['spoiler_text'] }}</summary> + <div> + @if ($status['spoiler_text'] !== '') + <details> + <summary>{{ $status['spoiler_text'] }}</summary> + @component('status_content', ['status' => $status]) + @endcomponent + </details> + @else @component('status_content', ['status' => $status]) @endcomponent - </details> - @else - @component('status_content', ['status' => $status]) - @endcomponent - @endif + @endif + </div> <div class="actions"> <!-- Context -->