From 06cffa112d2dd8e7b740a03c86d73d66ee8d2ad6 Mon Sep 17 00:00:00 2001 From: Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> Date: Tue, 27 Aug 2024 11:51:32 +0000 Subject: [PATCH] stop using inline-block for links, fixes #4531 Closes #4531 Merge request studip/studip!3326 --- resources/assets/stylesheets/scss/content.scss | 14 +------------- resources/assets/stylesheets/scss/forum.scss | 13 +------------ 2 files changed, 2 insertions(+), 25 deletions(-) diff --git a/resources/assets/stylesheets/scss/content.scss b/resources/assets/stylesheets/scss/content.scss index 43073a48e94..9ccccb2847a 100644 --- a/resources/assets/stylesheets/scss/content.scss +++ b/resources/assets/stylesheets/scss/content.scss @@ -27,19 +27,7 @@ .formatted-content { display: flow-root; - - a { - word-break: break-all; - - &.link-extern, - &.link-intern { - display: inline-block; - max-width: 90%; - overflow: hidden; - text-overflow: ellipsis; - vertical-align: top; - } - } + overflow-wrap: break-word; img { height: auto; diff --git a/resources/assets/stylesheets/scss/forum.scss b/resources/assets/stylesheets/scss/forum.scss index fd5df34d1c2..01b97c1c46e 100644 --- a/resources/assets/stylesheets/scss/forum.scss +++ b/resources/assets/stylesheets/scss/forum.scss @@ -151,18 +151,6 @@ $shadow: 1px 1px 3px rgba(0, 0, 0, 0.2); margin: 0 0 0.75em 0; padding: 0; background-color: var(--content-color-20); - a { - word-break: break-all; - - &.link-extern, - &.link-intern { - display: inline-block; - max-width: 50vw; - overflow: hidden; - text-overflow: ellipsis; - vertical-align: top; - } - } } .real_posting { @@ -185,6 +173,7 @@ $shadow: 1px 1px 3px rgba(0, 0, 0, 0.2); padding: 0pt 5px; margin: 5px 0 0 0; flex: 1; + min-width: 0; text-align: left; } -- GitLab