diff options
author | 2023-01-05 09:38:01 +0100 | |
---|---|---|
committer | 2023-01-05 09:38:01 +0100 | |
commit | de74cc6e9407bb064c9d9c3df4f7355d5692f101 (patch) | |
tree | 793481ec96b8725a7d9b6d9fd0e5871d8ba17b62 | |
parent | [feature] HTTP request throttling middleware (#1297) (diff) | |
download | gotosocial-de74cc6e9407bb064c9d9c3df4f7355d5692f101.tar.xz |
[bugfix/frogend] replace ch units to prevent layout shift on page load (#1301)
-rw-r--r-- | web/source/css/base.css | 4 | ||||
-rw-r--r-- | web/source/css/profile.css | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/web/source/css/base.css b/web/source/css/base.css index 73b533733..da2ad8f2b 100644 --- a/web/source/css/base.css +++ b/web/source/css/base.css @@ -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; } diff --git a/web/source/css/profile.css b/web/source/css/profile.css index f371cfae7..3de2f4387 100644 --- a/web/source/css/profile.css +++ b/web/source/css/profile.css @@ -44,7 +44,7 @@ main { .headerimage { width: 100%; aspect-ratio: 3 / 1; - max-height: 30ch; + max-height: 16rem; overflow: hidden; box-shadow: $boxshadow; |