mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Fix music player with RTL song names.
This commit is contained in:
@@ -859,7 +859,7 @@ void Widget::updateLabelsGeometry() {
|
||||
const auto widthForName = width()
|
||||
- left
|
||||
- getNameRight();
|
||||
_nameLabel->resizeToWidth(widthForName);
|
||||
_nameLabel->resizeToNaturalWidth(widthForName);
|
||||
_nameLabel->moveToLeft(left, st::mediaPlayerNameTop - st::mediaPlayerName.style.font->ascent);
|
||||
|
||||
const auto right = getTimeRight();
|
||||
@@ -1056,8 +1056,8 @@ void Widget::handleSongChange() {
|
||||
.textWithEntities(true);
|
||||
}
|
||||
_nameLabel->setMarkedText(textWithEntities);
|
||||
|
||||
handlePlaylistUpdate();
|
||||
updateLabelsGeometry();
|
||||
}
|
||||
|
||||
void Widget::handlePlaylistUpdate() {
|
||||
|
||||
Reference in New Issue
Block a user