From 861625fdca4577658299e1b2ad08bfe3d4fe434f Mon Sep 17 00:00:00 2001 From: diondiondion Date: Tue, 25 Nov 2025 14:21:59 +0100 Subject: [PATCH] Prevent vertical videos from overflowing the viewport (#36966) --- app/javascript/styles/mastodon/components.scss | 2 ++ app/javascript/styles_new/mastodon/components.scss | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/javascript/styles/mastodon/components.scss b/app/javascript/styles/mastodon/components.scss index 238fbe2be32..5571fd6f47e 100644 --- a/app/javascript/styles/mastodon/components.scss +++ b/app/javascript/styles/mastodon/components.scss @@ -7699,6 +7699,8 @@ a.status-card { position: relative; background: $base-shadow-color; max-width: 100%; + max-height: max(400px, 60vh); + margin-inline: auto; border-radius: 8px; box-sizing: border-box; color: $white; diff --git a/app/javascript/styles_new/mastodon/components.scss b/app/javascript/styles_new/mastodon/components.scss index 970e3d128f2..34a0308402d 100644 --- a/app/javascript/styles_new/mastodon/components.scss +++ b/app/javascript/styles_new/mastodon/components.scss @@ -7492,6 +7492,8 @@ a.status-card { color: var(--color-text-on-media); background: var(--color-bg-media); max-width: 100%; + max-height: max(400px, 60vh); + margin-inline: auto; border-radius: 8px; box-sizing: border-box; display: flex;