Switch from hr dividers to list items

Switched from using horizontal rules to divide articles to
making each article a list item. This is invisible to graphical
browsers, but makes identifying posts and reposts much easier
in text browsers.
This commit is contained in:
St John Karp 2018-10-07 17:51:22 -07:00
parent 73d0123d69
commit 457da06f22
8 changed files with 43 additions and 36 deletions

11
public/css/styles.css vendored
View File

@ -82,18 +82,17 @@ input, textarea {
width: 100%;
}
ul {
list-style: none;
padding: 0;
}
nav ul {
display: flex;
justify-content: space-between;
list-style: none;
padding: 0;
}
nav ul li {
display: inline;
margin-top: 0;
}
hr {
display: none;
}

View File

@ -15,17 +15,19 @@
@component('navigation')
@endcomponent
@foreach ($context['ancestors'] as $ancestor)
@component('status', ['status' => $ancestor])
@endcomponent
@endforeach
<ul>
@foreach ($context['ancestors'] as $ancestor)
@component('status', ['status' => $ancestor])
@endcomponent
@endforeach
@component('status', ['status' => $status])
@endcomponent
@foreach ($context['descendants'] as $descendant)
@component('status', ['status' => $descendant])
@component('status', ['status' => $status])
@endcomponent
@endforeach
@foreach ($context['descendants'] as $descendant)
@component('status', ['status' => $descendant])
@endcomponent
@endforeach
</ul>
</body>
</html>

View File

@ -22,10 +22,12 @@
{{ csrf_field() }}
</form>
@foreach ($statuses as $status)
@component('status', ['status' => $status])
@endcomponent
@endforeach
<ul>
@foreach ($statuses as $status)
@component('status', ['status' => $status])
@endcomponent
@endforeach
</ul>
@component('pagination', ['links' => $links])
@endcomponent

View File

@ -1,4 +1,4 @@
<article>
<li><article>
@component('event_info', [
'account' => $notification['account'],
'created_at' => $notification['created_at'],
@ -10,4 +10,4 @@
@component('status', ['status' => $notification['status']])
@endcomponent
@endif
</article>
</article></li>

View File

@ -15,10 +15,12 @@
@component('navigation')
@endcomponent
@foreach ($notifications as $notification)
@component('notification', ['notification' => $notification])
@endcomponent
@endforeach
<ul>
@foreach ($notifications as $notification)
@component('notification', ['notification' => $notification])
@endcomponent
@endforeach
</ul>
@component('pagination', ['links' => $links])
@endcomponent

View File

@ -15,10 +15,12 @@
@component('navigation')
@endcomponent
@foreach ($statuses as $status)
@component('status', ['status' => $status])
@endcomponent
@endforeach
<ul>
@foreach ($statuses as $status)
@component('status', ['status' => $status])
@endcomponent
@endforeach
</ul>
@component('pagination', ['links' => $links])
@endcomponent

View File

@ -1,5 +1,4 @@
<hr />
<article>
<li><article>
@component('event_info', [
'account' => $status['account'],
'created_at' => $status['created_at'],
@ -54,5 +53,4 @@
{{ $status['favourites_count'] }}
</span>
</div>
</article>
<hr />
</article></li>

View File

@ -28,6 +28,8 @@
@endif
@endforeach
@else
@component('status', ['status' => $status['reblog']])
@endcomponent
<ul>
@component('status', ['status' => $status['reblog']])
@endcomponent
</ul>
@endif