diff --git a/bin/assets/ui/breeze.css b/bin/assets/ui/breeze.css index 7d403448d..d71a8e34a 100644 --- a/bin/assets/ui/breeze.css +++ b/bin/assets/ui/breeze.css @@ -140,14 +140,21 @@ a:hover { } br { - layout-height: 1em; + layout-height: 0; +} + +img { + scale-type: fit-inside; } markdownview img { - scale-type: fit-inside; max-height: 100vh; } +markdownview table > thead > tr > th { + font-style: bold; +} + blockquote { padding-left: 8dp; background-color: var(--list-back); diff --git a/src/eepp/graphics/richtext.cpp b/src/eepp/graphics/richtext.cpp index 530b36e61..d8eaf8694 100644 --- a/src/eepp/graphics/richtext.cpp +++ b/src/eepp/graphics/richtext.cpp @@ -450,6 +450,12 @@ void RichText::updateLayout() { curX += blockSize.getWidth(); currentLine.width += blockSize.getWidth(); + + if ( mMaxWidth > 0 && curX + blockSize.getWidth() > mMaxWidth && curX > 0 ) { + maxWidth = std::max( maxWidth, curX ); + mLines.push_back( RenderParagraph() ); + curX = 0; + } } }