From 912d642575fcc0abae78a0532b63ddc90df62d18 Mon Sep 17 00:00:00 2001 From: Sol Fisher Romanoff Date: Sun, 3 Apr 2022 18:12:40 +0300 Subject: [PATCH 1/2] Fix alt text wrap and line breaks --- src/components/media_modal/media_modal.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/media_modal/media_modal.vue b/src/components/media_modal/media_modal.vue index 8b76aafb..802a60b3 100644 --- a/src/components/media_modal/media_modal.vue +++ b/src/components/media_modal/media_modal.vue @@ -189,7 +189,8 @@ $modal-view-button-icon-margin: 0.5em; min-height: 1em; max-width: 500px; max-height: 9.5em; - word-break: break-all; + word-break: break-word; + white-space: pre-line; } .modal-image { -- 2.43.0 From 3d50727c5e52674d5aaa32d5a2a4dd08909f6b59 Mon Sep 17 00:00:00 2001 From: Sol Fisher Romanoff Date: Sun, 26 Jun 2022 21:30:48 +0300 Subject: [PATCH 2/2] Fix alt text wrap on overlay --- src/components/attachment/attachment.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/attachment/attachment.scss b/src/components/attachment/attachment.scss index b2dea98d..c090eec9 100644 --- a/src/components/attachment/attachment.scss +++ b/src/components/attachment/attachment.scss @@ -33,7 +33,8 @@ line-height: 1.5; padding: 0.5em; margin: 0; - white-space: nowrap; + white-space: pre-line; + word-break: break-word; text-overflow: ellipsis; overflow: hidden; } -- 2.43.0