UPD: Use two dots instead of three as ellipsis in file list to save some space

This commit is contained in:
cordylus 2019-07-11 23:41:08 +00:00
commit dbbe809621

View file

@ -133,7 +133,7 @@ begin
if gDirBrackets and (AFile.IsDirectory or AFile.IsLinkToDirectory) then
S:= '..]'
else begin
S:= '...';
S:= '..';
end;
Index:= ACanvas.TextFitInfo(AFileName, ATargetWidth - ACanvas.TextWidth(S));
Result:= UTF8Copy(AFileName, 1, Index) + S;
@ -143,7 +143,7 @@ end;
{ FitOtherCellText }
function FitOtherCellText(const sStringToFit:String; ACanvas:TCanvas; ATargetWidth: Integer): String;
const
ELLIPSIS = '...';
ELLIPSIS = '..';
var
Index: Integer;
AMaxWidth: Integer;