Skip to content

Commit

Permalink
fix padding
Browse files Browse the repository at this point in the history
  • Loading branch information
abourtnik committed Dec 21, 2023
1 parent ec75189 commit d811ef5
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 13 deletions.
2 changes: 1 addition & 1 deletion resources/views/pages/home.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@section('title', 'Share and Watch Amazing Videos')
@section('description', 'Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on '.config('app.name').'.')

@section('class', 'px-3 mt-3')
@section('class', 'px-1 px-sm-3 mt-3')

@section('content')
<videos-area url="{{route('videos.home')}}" /></videos-area>
Expand Down
37 changes: 25 additions & 12 deletions resources/views/users/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,23 +219,36 @@ class="link-primary bg-transparent text-decoration-none d-flex align-items-cente
<a rel="external nofollow" target="_blank" href="//{{$user->website}}">Website</a>
</li>
@endif
@auth
<li class="list-group-item ps-0">
@can('report', $user)
<button class="btn btn-secondary rounded-4 btn-sm px-3" data-bs-toggle="modal" data-bs-target="#report" data-id="{{$user->id}}" data-type="{{\App\Models\User::class}}">
@auth
@can('report', $user)
<button class="btn btn-secondary rounded-4 btn-sm px-3" data-bs-toggle="modal" data-bs-target="#report" data-id="{{$user->id}}" data-type="{{\App\Models\User::class}}">
<i class="fa-regular fa-flag"></i>&nbsp;
Report
</button>
@else
@if($user->reportByAuthUser)
<div class="rounded-4 d-flex alert alert-secondary px-3 py-2 align-items-center gap-2 mb-0 text-sm">
<i class="fa-regular fa-flag"></i>
<span>Reported {{$user->reportByAuthUser->created_at->diffForHumans()}}</span>
</div>
@endif
@endcan
@else
<button
class="btn btn-secondary rounded-4 btn-sm px-3"
data-bs-toggle="popover"
data-bs-placement="right"
data-bs-title="Need to report the user?"
data-bs-trigger="focus"
data-bs-html="true"
data-bs-content="Sign in to report inappropriate content.<hr><a href='/login' class='btn btn-primary btn-sm'>Sign in</a>"
>
<i class="fa-regular fa-flag"></i>&nbsp;
Report
</button>
@else
@if($user->reportByAuthUser)
<div class="rounded-4 d-flex alert alert-secondary px-3 py-2 align-items-center gap-2 mb-0 text-sm">
<i class="fa-regular fa-flag"></i>
<span>Reported {{$user->reportByAuthUser->created_at->diffForHumans()}}</span>
</div>
@endif
@endcan
@endauth
</li>
@endauth
</ul>
</div>
</div>
Expand Down

0 comments on commit d811ef5

Please sign in to comment.