From 473e84916ffa004b3b38fe7b765c5cf32d062009 Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Tue, 23 Apr 2019 21:46:30 +0200 Subject: [PATCH] Put a max-size on inlined images --- .../flavours/glitch/styles/components/status.scss | 6 ++++++ app/javascript/styles/mastodon/components.scss | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/app/javascript/flavours/glitch/styles/components/status.scss b/app/javascript/flavours/glitch/styles/components/status.scss index cdd38a686..c98d4d7fe 100644 --- a/app/javascript/flavours/glitch/styles/components/status.scss +++ b/app/javascript/flavours/glitch/styles/components/status.scss @@ -66,6 +66,12 @@ margin: -3px 0 0; } + img { + max-width: 100%; + max-height: 400px; + object-fit: contain; + } + p, pre, blockquote { margin-bottom: 20px; white-space: pre-wrap; diff --git a/app/javascript/styles/mastodon/components.scss b/app/javascript/styles/mastodon/components.scss index fdf159e54..7c55c7a40 100644 --- a/app/javascript/styles/mastodon/components.scss +++ b/app/javascript/styles/mastodon/components.scss @@ -800,6 +800,12 @@ margin: -3px 0 0; } + img { + max-width: 100%; + max-height: 400px; + object-fit: contain; + } + p { margin-bottom: 20px; white-space: pre-wrap;