mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +00:00
Fix date layout for webpage preview without description.
This commit is contained in:
@@ -235,11 +235,6 @@ QSize WebPage::countOptimalSize() {
|
||||
}
|
||||
if (_title.isEmpty() && !title.isEmpty()) {
|
||||
auto titleWithEntities = Ui::Text::Link(title, _data->url);
|
||||
if (textFloatsAroundInfo && _description.isEmpty()) {
|
||||
_title.updateSkipBlock(
|
||||
_parent->skipBlockWidth(),
|
||||
_parent->skipBlockHeight());
|
||||
}
|
||||
if (!_siteNameLines && !_data->url.isEmpty()) {
|
||||
_title.setMarkedText(
|
||||
st::webPageTitleStyle,
|
||||
@@ -252,6 +247,11 @@ QSize WebPage::countOptimalSize() {
|
||||
title,
|
||||
Ui::WebpageTextTitleOptions());
|
||||
}
|
||||
if (textFloatsAroundInfo && _description.isEmpty()) {
|
||||
_title.updateSkipBlock(
|
||||
_parent->skipBlockWidth(),
|
||||
_parent->skipBlockHeight());
|
||||
}
|
||||
}
|
||||
|
||||
// init dimensions
|
||||
|
Reference in New Issue
Block a user