mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 15:45: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()) {
|
if (_title.isEmpty() && !title.isEmpty()) {
|
||||||
auto titleWithEntities = Ui::Text::Link(title, _data->url);
|
auto titleWithEntities = Ui::Text::Link(title, _data->url);
|
||||||
if (textFloatsAroundInfo && _description.isEmpty()) {
|
|
||||||
_title.updateSkipBlock(
|
|
||||||
_parent->skipBlockWidth(),
|
|
||||||
_parent->skipBlockHeight());
|
|
||||||
}
|
|
||||||
if (!_siteNameLines && !_data->url.isEmpty()) {
|
if (!_siteNameLines && !_data->url.isEmpty()) {
|
||||||
_title.setMarkedText(
|
_title.setMarkedText(
|
||||||
st::webPageTitleStyle,
|
st::webPageTitleStyle,
|
||||||
@@ -252,6 +247,11 @@ QSize WebPage::countOptimalSize() {
|
|||||||
title,
|
title,
|
||||||
Ui::WebpageTextTitleOptions());
|
Ui::WebpageTextTitleOptions());
|
||||||
}
|
}
|
||||||
|
if (textFloatsAroundInfo && _description.isEmpty()) {
|
||||||
|
_title.updateSkipBlock(
|
||||||
|
_parent->skipBlockWidth(),
|
||||||
|
_parent->skipBlockHeight());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// init dimensions
|
// init dimensions
|
||||||
|
Reference in New Issue
Block a user