2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Fix long names in sending files preview.

This commit is contained in:
John Preston
2018-06-01 23:05:19 +03:00
parent 80be464d95
commit fdfdd0acce

View File

@@ -220,6 +220,7 @@ AlbumThumb::AlbumThumb(
if (_nameWidth > availableFileWidth) {
_name = st::semiboldFont->elided(
_name,
availableFileWidth,
Qt::ElideMiddle);
_nameWidth = st::semiboldFont->width(_name);
}