forked from mirror/pixelfed
Add required html to improve status view
This commit is contained in:
parent
20432ada5f
commit
33ab1c987a
1 changed files with 59 additions and 44 deletions
|
@ -5,11 +5,7 @@
|
||||||
<div class="container px-0 mt-md-4">
|
<div class="container px-0 mt-md-4">
|
||||||
<div class="card status-container orientation-{{$status->firstMedia()->orientation ?? 'unknown'}}">
|
<div class="card status-container orientation-{{$status->firstMedia()->orientation ?? 'unknown'}}">
|
||||||
<div class="row mx-0">
|
<div class="row mx-0">
|
||||||
<div class="col-12 col-md-8 status-photo px-0">
|
<div class="d-flex d-md-none align-items-center justify-content-between card-header w-100">
|
||||||
<img src="{{$status->mediaUrl()}}" width="100%">
|
|
||||||
</div>
|
|
||||||
<div class="col-12 col-md-4 px-0 d-flex flex-column">
|
|
||||||
<div class="d-flex align-items-center justify-content-between card-header">
|
|
||||||
<div class="d-flex align-items-center status-username">
|
<div class="d-flex align-items-center status-username">
|
||||||
<div class="status-avatar mr-2">
|
<div class="status-avatar mr-2">
|
||||||
<img class="img-thumbnail" src="{{$user->avatarUrl()}}" width="24px" height="24px" style="border-radius:12px;">
|
<img class="img-thumbnail" src="{{$user->avatarUrl()}}" width="24px" height="24px" style="border-radius:12px;">
|
||||||
|
@ -22,6 +18,24 @@
|
||||||
<p class="small text-uppercase mb-0"><a href="{{$status->url()}}" class="text-muted">{{$status->created_at->diffForHumans(null, true, true, true)}}</a></p>
|
<p class="small text-uppercase mb-0"><a href="{{$status->url()}}" class="text-muted">{{$status->created_at->diffForHumans(null, true, true, true)}}</a></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-12 col-md-8 status-photo px-0">
|
||||||
|
<img src="{{$status->mediaUrl()}}" width="100%">
|
||||||
|
</div>
|
||||||
|
<div class="col-12 col-md-4 px-0 d-flex flex-column">
|
||||||
|
<div class="d-md-flex d-none align-items-center justify-content-between card-header">
|
||||||
|
<div class="d-flex align-items-center status-username">
|
||||||
|
<div class="status-avatar mr-2">
|
||||||
|
<img class="img-thumbnail" src="{{$user->avatarUrl()}}" width="24px" height="24px" style="border-radius:12px;">
|
||||||
|
</div>
|
||||||
|
<div class="username">
|
||||||
|
<a href="{{$user->url()}}" class="username-link font-weight-bold text-dark">{{$user->username}}</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="timestamp mb-0">
|
||||||
|
<p class="small text-uppercase mb-0"><a href="{{$status->url()}}" class="text-muted">{{$status->created_at->diffForHumans(null, true, true, true)}}</a></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="d-flex flex-md-column flex-column-reverse h-100">
|
||||||
<div class="card-body status-comments">
|
<div class="card-body status-comments">
|
||||||
<div class="status-comment">
|
<div class="status-comment">
|
||||||
<p class="mb-1">
|
<p class="mb-1">
|
||||||
|
@ -74,7 +88,8 @@
|
||||||
<span class="like-count" data-count="{{$status->likes_count}}">{{$status->likes_count}}</span> likes
|
<span class="like-count" data-count="{{$status->likes_count}}">{{$status->likes_count}}</span> likes
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer">
|
</div>
|
||||||
|
<div class="card-footer bg-light sticky-md-bottom">
|
||||||
<form class="comment-form" method="post" action="/i/comment" data-id="{{$status->id}}" data-truncate="false">
|
<form class="comment-form" method="post" action="/i/comment" data-id="{{$status->id}}" data-truncate="false">
|
||||||
@csrf
|
@csrf
|
||||||
<input type="hidden" name="item" value="{{$status->id}}">
|
<input type="hidden" name="item" value="{{$status->id}}">
|
||||||
|
|
Loading…
Reference in a new issue