mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-10-02 03:00:23 +03:00
Minor fix in RichText.
This commit is contained in:
@@ -140,14 +140,21 @@ a:hover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
br {
|
br {
|
||||||
layout-height: 1em;
|
layout-height: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
scale-type: fit-inside;
|
||||||
}
|
}
|
||||||
|
|
||||||
markdownview img {
|
markdownview img {
|
||||||
scale-type: fit-inside;
|
|
||||||
max-height: 100vh;
|
max-height: 100vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
markdownview table > thead > tr > th {
|
||||||
|
font-style: bold;
|
||||||
|
}
|
||||||
|
|
||||||
blockquote {
|
blockquote {
|
||||||
padding-left: 8dp;
|
padding-left: 8dp;
|
||||||
background-color: var(--list-back);
|
background-color: var(--list-back);
|
||||||
|
|||||||
@@ -450,6 +450,12 @@ void RichText::updateLayout() {
|
|||||||
|
|
||||||
curX += blockSize.getWidth();
|
curX += blockSize.getWidth();
|
||||||
currentLine.width += 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