From 62b3f284dba9ce811235494062d0f3bf65a1e2a3 Mon Sep 17 00:00:00 2001 From: Claire Date: Mon, 15 Apr 2024 13:56:48 +0200 Subject: [PATCH] [Glitch] Fix unfollow button being out of frame on small screens on old browsers Port 4117c8f6b88f72a9f2a3177f2c02708b7e05c772 to glitch-soc Signed-off-by: Claire --- app/javascript/flavours/glitch/styles/components.scss | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/javascript/flavours/glitch/styles/components.scss b/app/javascript/flavours/glitch/styles/components.scss index 408ebf9191..3430568f7f 100644 --- a/app/javascript/flavours/glitch/styles/components.scss +++ b/app/javascript/flavours/glitch/styles/components.scss @@ -8445,8 +8445,13 @@ noscript { } } - @container account-header (max-width: 372px) { - .optional { + .optional { + @container account-header (max-width: 372px) { + display: none; + } + + // Fallback for older browsers with no container queries support + @media screen and (max-width: 372px + 55px) { display: none; } }