[bugfix/frogend] replace ch units to prevent layout shift on page load (#1301)

This commit is contained in:
f0x52 2023-01-05 09:38:01 +01:00 committed by GitHub
parent 90a14abb0c
commit de74cc6e94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -62,8 +62,8 @@ body {
min-width: 100%;
width: 100%;
grid-template-columns: auto minmax(auto, 90ch) auto;
grid-template-columns: auto min(92%, 90ch) auto;
grid-template-columns: auto minmax(auto, 50rem) auto;
grid-template-columns: auto min(92%, 50rem) auto;
grid-template-rows: auto 1fr auto;
}

View file

@ -44,7 +44,7 @@ main {
.headerimage {
width: 100%;
aspect-ratio: 3 / 1;
max-height: 30ch;
max-height: 16rem;
overflow: hidden;
box-shadow: $boxshadow;