From 9ede21cbe2eaed89e0d546c21e265d48afae1cb9 Mon Sep 17 00:00:00 2001 From: Echo Date: Thu, 27 Nov 2025 16:27:18 +0100 Subject: [PATCH] [Glitch] Fix media modal misalignment in Safari Port f07cff42c25f556baeea9215939ce105a99bea84 to glitch-soc Signed-off-by: Claire --- app/javascript/flavours/glitch/styles/components.scss | 6 ++++-- .../flavours/glitch/styles_new/mastodon/components.scss | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/app/javascript/flavours/glitch/styles/components.scss b/app/javascript/flavours/glitch/styles/components.scss index 15af2e10fa..8389d875e3 100644 --- a/app/javascript/flavours/glitch/styles/components.scss +++ b/app/javascript/flavours/glitch/styles/components.scss @@ -6441,12 +6441,14 @@ a.status-card { inset-inline-start: 0; inset-inline-end: 0; bottom: 0; - align-items: center; - justify-content: space-around; // If set to center, the fullscreen image overlay is misaligned. > div { flex-shrink: 0; overflow: auto; + display: flex; + align-items: center; + justify-content: center; + width: 100%; } } diff --git a/app/javascript/flavours/glitch/styles_new/mastodon/components.scss b/app/javascript/flavours/glitch/styles_new/mastodon/components.scss index 5a4d075341..a676049df0 100644 --- a/app/javascript/flavours/glitch/styles_new/mastodon/components.scss +++ b/app/javascript/flavours/glitch/styles_new/mastodon/components.scss @@ -6329,12 +6329,14 @@ a.status-card { inset-inline-start: 0; inset-inline-end: 0; bottom: 0; - align-items: center; - justify-content: space-around; // If set to center, the fullscreen image overlay is misaligned. > div { flex-shrink: 0; overflow: auto; + display: flex; + align-items: center; + justify-content: center; + width: 100%; } }