mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Fixed display of selection marks for messages with huge code blocks.
This commit is contained in:
@@ -1615,14 +1615,16 @@ void Message::draw(Painter &p, const PaintContext &context) const {
|
|||||||
const auto o = ScopedPainterOpacity(p, progress);
|
const auto o = ScopedPainterOpacity(p, progress);
|
||||||
const auto &st = st::msgSelectionCheck;
|
const auto &st = st::msgSelectionCheck;
|
||||||
const auto right = delegate()->elementIsChatWide()
|
const auto right = delegate()->elementIsChatWide()
|
||||||
? (st::msgMaxWidth
|
? std::min(
|
||||||
|
(_bubbleWidthLimit
|
||||||
+ st::msgPhotoSkip
|
+ st::msgPhotoSkip
|
||||||
+ st::msgSelectionOffset
|
+ st::msgSelectionOffset
|
||||||
+ st::msgPadding.left()
|
+ st::msgPadding.left()
|
||||||
+ st.size)
|
+ st.size),
|
||||||
|
width())
|
||||||
: width();
|
: width();
|
||||||
const auto pos = QPoint(
|
const auto pos = QPoint(
|
||||||
(right
|
(width()
|
||||||
- (st::msgSelectionOffset * progress - st.size) / 2
|
- (st::msgSelectionOffset * progress - st.size) / 2
|
||||||
- st::msgPadding.right() / 2
|
- st::msgPadding.right() / 2
|
||||||
- st.size),
|
- st.size),
|
||||||
|
Reference in New Issue
Block a user