Commit 39b4ea8e authored by Robert Knight's avatar Robert Knight Committed by Nick Stenning

Prevent long URLs in quotes and bodies causing overflow (#3546)

Set a maximum width on the annotation content to prevent it overflowing
the card and set `overflow-wrap` on annotation quotes and bodies so that
long words without any natural breakpoints are broken in the middle if
necessary to prevent overflow.

Fixes #3421
parent d90cc53d
......@@ -39,6 +39,9 @@ li:first-child .annotation-thread--top-reply {
.annotation-thread__content {
flex-grow: 1;
// Prevent annotation content from overflowing the container
max-width: 100%;
}
// Darken expand/collapse toggle when an annotation is hovered. This is only
......
......@@ -190,6 +190,9 @@ $annotation-card-left-padding: 10px;
.annotation-quote {
@include quote;
// Prevent long URLs etc. in quote causing overflow
overflow-wrap: break-word;
}
.annotation-citation-domain {
......
......@@ -46,6 +46,9 @@
cursor: text;
// Prevent long URLs etc. in body causing overflow
overflow-wrap: break-word;
// Margin between bottom of ascent of username and top of
// x-height of annotation-body should be ~15px.
// Remove additional margin-top added by the first p within
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment