Skip to content

Commit

Permalink
fix: adjust news image style
Browse files Browse the repository at this point in the history
  • Loading branch information
jackd248 committed Dec 18, 2024
1 parent 95a4193 commit b7a72ff
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
16 changes: 9 additions & 7 deletions Resources/Private/Partials/Detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ <h2>{record.title}</h2>
</f:if>
</div>

<f:if condition="{record.image}">
<div class="internal-news--image-container">
<div class="internal-news--image">
<f:image image="{record.image}" alt="{record.title}" width="760px"/>
</div>
</div>
</f:if>

<div class="internal-news--description">{record.description -> f:format.raw()}</div>
<f:if condition="{record.nextDates}">
<div class="internal-news--next-dates">
Expand All @@ -42,10 +50,4 @@ <h4>
</ul>
</div>
</f:if>
<div class="internal-news--image-container">
<f:if condition="{record.image}">
<div class="internal-news--image">
<f:image image="{record.image}" alt="{record.title}" width="760px"/>
</div>
</f:if>
</div>

7 changes: 7 additions & 0 deletions Resources/Public/Stylesheets/Backend.css
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,13 @@ small {
gap: 0.5em;
}

.internal-news--image-container {
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 2em;
}

.internal-news .internal-news--image img {
width: 100%;
height: auto;
Expand Down

0 comments on commit b7a72ff

Please sign in to comment.