Skip to content

Commit

Permalink
design: fix viewport height for smartphone
Browse files Browse the repository at this point in the history
  • Loading branch information
macrat committed Jan 6, 2024
1 parent 395da00 commit e5a8133
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
body {
display: flex;
flex-direction: column;
min-height: 100vh;
min-height: 100dvh;
box-sizing: border-box;
margin: 0 auto;
padding: 0 8px;
Expand Down
2 changes: 1 addition & 1 deletion templates/photos/detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
img {
display: block;
margin: 0 auto;
max-height: 80vh;
max-height: 80dvh;
width: auto;
aspect-ratio: {{.Metadata.AspectRatio}};
}
Expand Down

0 comments on commit e5a8133

Please sign in to comment.