mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 23:27:09 +02:00
Fix date layout for webpage preview without description.
This commit is contained in:
parent
9bd9f17a6c
commit
acb6e5dbc3
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue