Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions resources/views/static/grassroots-grants.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,22 @@
margin-top: 1.5rem;
}

.grants-gallery > * {
min-width: 0;
}

.grants-gallery img {
width: 100%;
height: 160px;
object-fit: cover;
border-radius: 12px;
}

.grants-gallery a {
overflow-wrap: anywhere;
word-break: break-word;
hyphens: auto;
}
</style>

@section('content')
Expand Down Expand Up @@ -214,8 +224,8 @@ class="absolute top-0 right-0 w-full md:w-[60vw] h-[50%] md:h-full object-cover
<div class="grants-gallery">
@foreach($project->images as $image)
@if($image->isPdf())
<a href="{{ $image->resolvedUrl() }}" target="_blank" rel="noopener noreferrer" class="flex items-center justify-center p-4 bg-[#E8EDF6] rounded-xl text-dark-blue font-semibold text-sm text-center min-h-[160px]">
PDF: {{ basename($image->url) }}
<a href="{{ $image->resolvedUrl() }}" target="_blank" rel="noopener noreferrer" class="flex items-center justify-center p-4 bg-[#E8EDF6] rounded-xl text-dark-blue font-semibold text-sm text-center min-h-[160px] min-w-0">
PDF: {{ basename(rawurldecode($image->url)) }}
</a>
@else
<img src="{{ $image->resolvedUrl() }}" alt="{{ $image->alt ?: $project->title }}" loading="lazy" />
Expand Down
Loading