receipt/view: Fix image sizing on moble
dustin/receipts/pipeline/head There was a failure building this commit Details

I wasn't paying attention and added a bunch of CSS rules that only apply
to destkop screen sizes that should apply to all clients.
bugfix/ci-buildah
Dustin 2025-03-14 20:42:07 -05:00
parent 83a4ca0ad5
commit 79d8d899bb
1 changed files with 13 additions and 9 deletions

View File

@ -1,6 +1,19 @@
{% extends "base" %} {% block head %}
<title>Receipt: ${{ amount }} at {{ vendor }}</title>
<style>
.photo {
max-width: 100%;
}
.photo img {
max-width: 100%;
}
.photo iframe {
width: 100%;
aspect-ratio: 8.5 / 11;
}
@media screen and (min-width: 900px) {
article {
display: flex;
@ -14,15 +27,6 @@
.photo {
flex-grow: 1;
}
.photo img {
max-width: 100%;
}
.photo iframe {
width: 100%;
aspect-ratio: 8.5 / 11;
}
}
</style>
{% endblock %} {% block main %}