mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-29 00:39:55 +00:00
Fix RTL text in bot attach webview main button.
This commit is contained in:
@@ -303,7 +303,7 @@ void Panel::Button::paintEvent(QPaintEvent *e) {
|
||||
const auto textTop = _st.padding.top() + _st.textTop;
|
||||
const auto textLeft = padding + (space - textWidth) / 2;
|
||||
p.setPen(_fg);
|
||||
_text.drawLeftElided(p, textLeft, textTop, space, width());
|
||||
_text.drawLeftElided(p, textLeft, textTop, textWidth, width());
|
||||
}
|
||||
|
||||
QImage Panel::Button::prepareRippleMask() const {
|
||||
|
||||
Reference in New Issue
Block a user