Slightly improved position of selection marks for wide chats.

This commit is contained in:
23rd 2024-10-15 12:59:15 +03:00
parent 9077db2e97
commit e646b4dc9a

View file

@ -1614,8 +1614,15 @@ 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()
? (st::msgMaxWidth
+ st::msgPhotoSkip
+ st::msgSelectionOffset
+ st::msgPadding.left()
+ st.size)
: width();
const auto pos = QPoint( const auto pos = QPoint(
(width() (right
- (st::msgSelectionOffset * progress - st.size) / 2 - (st::msgSelectionOffset * progress - st.size) / 2
- st::msgPadding.right() / 2 - st::msgPadding.right() / 2
- st.size), - st.size),