Add padding space before file size

This commit is contained in:
Pk11 2021-08-08 08:27:11 -05:00
parent 6662d644d5
commit ce49d1fdf9

View File

@ -164,9 +164,9 @@ void showDirectoryContents (const std::vector<DirEntry>& dirContents, int fileOf
if (entry->name == "..") { if (entry->name == "..") {
font->print(-1, i + 1, true, "(..)", Alignment::right, pal); font->print(-1, i + 1, true, "(..)", Alignment::right, pal);
} else if (entry->isDirectory) { } else if (entry->isDirectory) {
font->print(-1, i + 1, true, "(dir)", Alignment::right, pal); font->print(-1, i + 1, true, " (dir)", Alignment::right, pal);
} else { } else {
font->printf(-1, i + 1, true, Alignment::right, pal, "(%s)", getBytes(entry->size).c_str()); font->printf(-1, i + 1, true, Alignment::right, pal, " (%s)", getBytes(entry->size).c_str());
} }
} }