Skip to content

Commit

Permalink
[bugfix/frogend] replace ch units to prevent layout shift on page load (
Browse files Browse the repository at this point in the history
  • Loading branch information
f0x52 committed Jan 5, 2023
1 parent 90a14ab commit de74cc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions web/source/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion web/source/css/profile.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ main {
.headerimage {
width: 100%;
aspect-ratio: 3 / 1;
max-height: 30ch;
max-height: 16rem;
overflow: hidden;
box-shadow: $boxshadow;

Expand Down

0 comments on commit de74cc6

Please sign in to comment.