receipt/view: Fix image sizing on moble
dustin/receipts/pipeline/head There was a failure building this commit
Details
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
parent
83a4ca0ad5
commit
79d8d899bb
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue