From 91c491fd8d0063fdabf76ad5f40e61c278e484b3 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Tue, 24 Sep 2019 00:29:42 -0700 Subject: [PATCH] fix: more CSS tweaks for very small screens (#1527) --- .../dialog/components/GenericDialogList.html | 4 +++ .../_components/profile/AccountProfile.html | 29 +++++++++++++++++++ .../profile/AccountProfileDetails.html | 17 +++++++---- .../profile/AccountProfileFollow.html | 9 +++++- .../profile/AccountProfileHeader.html | 7 +++-- .../_components/status/StatusContent.html | 10 +++++++ 6 files changed, 68 insertions(+), 8 deletions(-) diff --git a/src/routes/_components/dialog/components/GenericDialogList.html b/src/routes/_components/dialog/components/GenericDialogList.html index 47b65490..253ede4c 100644 --- a/src/routes/_components/dialog/components/GenericDialogList.html +++ b/src/routes/_components/dialog/components/GenericDialogList.html @@ -87,6 +87,10 @@ } @media (max-width: 320px) { + .generic-dialog-list { + overflow-y: auto; + -webkit-overflow-scrolling: touch; + } .generic-dialog-list-button { padding: 10px 10px; } diff --git a/src/routes/_components/profile/AccountProfile.html b/src/routes/_components/profile/AccountProfile.html index 1a762ac6..175203d3 100644 --- a/src/routes/_components/profile/AccountProfile.html +++ b/src/routes/_components/profile/AccountProfile.html @@ -61,6 +61,10 @@ } @media (max-width: 767px) { + .account-profile { + padding-top: 100px; + } + .account-profile-grid { display: grid; grid-template-areas: "avatar name follow" @@ -75,6 +79,31 @@ padding: 10px; } } + + @media (max-width: 320px) { + .account-profile { + padding-top: 50px; + } + } + + @media (max-width: 240px) { + .account-profile { + padding-top: 0; + } + .account-profile-grid { + grid-template-areas: "avatar name" + "avatar label" + "username username" + "followed-by followed-by" + "follow follow" + "note note" + "meta meta" + "details details"; + grid-template-columns: min-content 1fr; + grid-column-gap: 5px; + grid-row-gap: 0; + } + }