From 9de72ea46ec2f4e14797d0e306475071b35bf91f Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Wed, 11 Aug 2021 14:36:52 +0200 Subject: [PATCH] Prevent long words/links overflowing in questions and comments This is not a problem in answers. Closes #111 --- app/assets/stylesheets/components/_answerbox.scss | 3 ++- app/assets/stylesheets/components/_comments.scss | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/components/_answerbox.scss b/app/assets/stylesheets/components/_answerbox.scss index c45dc613..9b80bdb9 100644 --- a/app/assets/stylesheets/components/_answerbox.scss +++ b/app/assets/stylesheets/components/_answerbox.scss @@ -3,8 +3,9 @@ &__question-user, &__answer-user, &__answer-date { - margin-bottom: 0px; + margin-bottom: 0; overflow: hidden; + word-break: break-all; } &__answer-date { diff --git a/app/assets/stylesheets/components/_comments.scss b/app/assets/stylesheets/components/_comments.scss index 70d35759..67f32102 100644 --- a/app/assets/stylesheets/components/_comments.scss +++ b/app/assets/stylesheets/components/_comments.scss @@ -8,7 +8,8 @@ &__user, &__content { - margin-bottom: 0px; + margin-bottom: 0; + word-break: break-all; } &__user-avatar {