Skip to content

Commit

Permalink
Center card image
Browse files Browse the repository at this point in the history
  • Loading branch information
flemming-pr committed Mar 23, 2024
1 parent 506e75d commit 9243f84
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions docker-compose.live.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ services:
schedule:
image: ghcr.io/chaostreff-flensburg/simple-borrow:latest
restart: always
tty: true
volumes:
- storage:/var/www/html/storage
depends_on:
Expand Down
4 changes: 3 additions & 1 deletion resources/views/components/card.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@

<div class="card bg-base-100 shadow-xl mb-4">
@if ($image)
<img class="object-cover rounded-l" loading="lazy" width="200" height="200" src="{{ asset('storage/' . $image) }}" alt="{{ $name }}">
<div class="flex justify-center">
<img class="object-cover rounded-l" loading="lazy" width="200" height="200" src="{{ asset('storage/' . $image) }}" alt="{{ $name }}">
</div>
@endif
<div class="card-body">
<h2 class="card-title">{{ $name }}</h2>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/partials/header.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<header>
<div class="navbar bg-base-100">
<div class="navbar bg-base-100 block md:flex">
<div class="flex-1">
<a href="{{ route('home') }}" class="btn btn-ghost text-xl">{{ config('app.name') }}</a>
</div>
Expand Down

0 comments on commit 9243f84

Please sign in to comment.