Skip to content

Commit

Permalink
ViewNewsPage: Add mobile image preview
Browse files Browse the repository at this point in the history
  • Loading branch information
earthboundkid committed Jun 13, 2024
1 parent c8d88b9 commit 51257b6
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/components/ViewNewsPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,22 @@ export default {
</picture>
<p class="has-text-centered">16 x 9</p>
</div>
<div class="ml-5">
<picture class="has-ratio" style="aspect-ratio: 5/4">
<img
:src="
page.getImagePreviewURL({
width: 400,
height: 500,
gravity: page.imageGravity,
})
"
class="border-thick"
width="200"
/>
</picture>
<p class="has-text-centered">4 x 5</p>
</div>
</div>

<BulmaField label="Image focus">
Expand Down

0 comments on commit 51257b6

Please sign in to comment.