From 3b0148046bc5dac7c3f323f82644357e45e12233 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bel=C3=A9n=20Albeza?= Date: Tue, 12 Mar 2024 15:10:23 +0100 Subject: [PATCH] :bug: Fix horizontal scroll bar in comments --- frontend/src/app/main/ui/comments.scss | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/frontend/src/app/main/ui/comments.scss b/frontend/src/app/main/ui/comments.scss index 095e14294..2b10eb9e5 100644 --- a/frontend/src/app/main/ui/comments.scss +++ b/frontend/src/app/main/ui/comments.scss @@ -98,8 +98,12 @@ } .content { + position: relative; @include bodySmallTypography; color: var(--color-foreground-primary); + word-wrap: break-word; + overflow-wrap: break-word; + hyphens: auto; } .replies { @@ -203,13 +207,6 @@ } } } - .content { - position: relative; - .text { - @include bodySmallTypography; - white-space: pre; - } - } } .comment-options-dropdown { @extend .dropdown-wrapper; @@ -233,7 +230,6 @@ height: 100%; width: 100%; max-width: $s-260; - min-width: $s-260; margin-bottom: $s-8; padding: $s-8; color: var(--input-foreground-color-active);