Expand width of grid elements to fit longer names

This commit is contained in:
Yousef Khadadeh 2026-04-28 20:55:30 +03:00
parent 4c30939882
commit cd45d1e8cd
3 changed files with 18 additions and 4 deletions

View file

@ -692,6 +692,7 @@ void FileSelectScreen::file_view() {
.childAlignmentX = CLAY_ALIGN_X_LEFT,
.entryHeight = entrySize.y(),
.entryCount = fileList.size(),
.entryWidthIsMinimum = true,
.elementContent = [&](size_t i) {
fileButton(i, false, iconSize);
}