Fix message selection checks position.

This commit is contained in:
John Preston 2024-10-24 12:38:00 +04:00
parent 9b9c3d788d
commit ae89b65a98

View file

@ -1616,7 +1616,7 @@ void Message::draw(Painter &p, const PaintContext &context) const {
const auto &st = st::msgSelectionCheck; const auto &st = st::msgSelectionCheck;
const auto right = delegate()->elementIsChatWide() const auto right = delegate()->elementIsChatWide()
? std::min( ? std::min(
(_bubbleWidthLimit int(_bubbleWidthLimit
+ st::msgPhotoSkip + st::msgPhotoSkip
+ st::msgSelectionOffset + st::msgSelectionOffset
+ st::msgPadding.left() + st::msgPadding.left()
@ -1624,7 +1624,7 @@ void Message::draw(Painter &p, const PaintContext &context) const {
width()) width())
: width(); : 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),