diff --git a/src/app/me/AboutMe.module.css b/src/app/me/AboutMe.module.css index 35c2ba9..7aa7400 100644 --- a/src/app/me/AboutMe.module.css +++ b/src/app/me/AboutMe.module.css @@ -1,5 +1,5 @@ .content { - width: min-content; + width: min(100vw, min-content); margin: 2rem auto; } @@ -7,6 +7,7 @@ display: grid; grid-template-columns: 300px 1fr; column-gap: 2rem; + max-width: 100vw; } .profileTower *:first-child { @@ -71,3 +72,19 @@ width: 100%; margin: 1rem 0; } + +/* stack if we're out of space */ +@media (max-width: 800px) { + .profileGrid { + grid-template-columns: 1fr; + } + + .profileGrid > * { + max-width: 100vw; + } + + .rightGrid { + display: flex; + flex-direction: column; + } +} diff --git a/src/components/AvatarChanger.tsx b/src/components/AvatarChanger.tsx index 0c2d74a..2b268da 100644 --- a/src/components/AvatarChanger.tsx +++ b/src/components/AvatarChanger.tsx @@ -41,7 +41,7 @@ export default function AvatarChanger({ alt="Your avatar" /> ) : ( - + )}