mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
@@ -1654,8 +1654,8 @@ void MediaView::displayDocument(DocumentData *doc, HistoryItem *item) { // empty
|
|||||||
int32 extmaxw = (st::mediaviewFileIconSize - st::mediaviewFileExtPadding * 2);
|
int32 extmaxw = (st::mediaviewFileIconSize - st::mediaviewFileExtPadding * 2);
|
||||||
_docExtWidth = st::mediaviewFileExtFont->width(_docExt);
|
_docExtWidth = st::mediaviewFileExtFont->width(_docExt);
|
||||||
if (_docExtWidth > extmaxw) {
|
if (_docExtWidth > extmaxw) {
|
||||||
_docExt = st::mediaviewFileNameFont->elided(_docExt, extmaxw, Qt::ElideMiddle);
|
_docExt = st::mediaviewFileExtFont->elided(_docExt, extmaxw, Qt::ElideMiddle);
|
||||||
_docExtWidth = st::mediaviewFileNameFont->width(_docExt);
|
_docExtWidth = st::mediaviewFileExtFont->width(_docExt);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
_doc->thumb->load(fileOrigin());
|
_doc->thumb->load(fileOrigin());
|
||||||
|
Reference in New Issue
Block a user