Skip to content

Commit

Permalink
Use full available width for text in some places.
Browse files Browse the repository at this point in the history
Fixes #28384.
  • Loading branch information
john-preston committed Sep 10, 2024
1 parent c2d5924 commit ca3c179
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -931,6 +931,7 @@ void Document::draw(
.pausedSpoiler = context.paused || On(PowerSaving::kChatSpoiler),
.selection = selection,
.highlight = highlightRequest ? &*highlightRequest : nullptr,
.useFullWidth = true,
});
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ void Game::draw(Painter &p, const PaintContext &context) const {
.selection = toDescriptionSelection(context.selection),
.elisionHeight = _descriptionLines * lineHeight,
.elisionRemoveFromEnd = endskip,
.useFullWidth = true,
});
tshift += _descriptionLines * lineHeight;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ void Invoice::draw(Painter &p, const PaintContext &context) const {
.pausedEmoji = context.paused || On(PowerSaving::kEmojiChat),
.pausedSpoiler = context.paused || On(PowerSaving::kChatSpoiler),
.selection = toDescriptionSelection(context.selection),
.useFullWidth = true,
});
tshift += _descriptionHeight;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1085,6 +1085,7 @@ void WebPage::draw(Painter &p, const PaintContext &context) const {
? (_descriptionLines * lineHeight)
: 0),
.elisionRemoveFromEnd = (_descriptionLines > 0) ? endskip : 0,
.useFullWidth = true,
});
tshift += (_descriptionLines > 0)
? (_descriptionLines * lineHeight)
Expand Down

0 comments on commit ca3c179

Please sign in to comment.