mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-10-02 11:10:31 +03:00
Minor fix in RichText.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user