diff --git a/src/GUIStuff/Elements/GridScrollArea.cpp b/src/GUIStuff/Elements/GridScrollArea.cpp index 72690bb..b2cece3 100644 --- a/src/GUIStuff/Elements/GridScrollArea.cpp +++ b/src/GUIStuff/Elements/GridScrollArea.cpp @@ -24,7 +24,7 @@ void GridScrollArea::layout(const Clay_ElementId& id, const Options& o) { opts.entryCount = rowCount; uint16_t xPadding = 0; if(rowCount > 1 || (rowCount == 1 && ((options.entryCount + entriesPerRow) / entriesPerRow) > 1)) // More than 1 row or 1st row is full - xPadding = static_cast(std::max(rowWidth - (entriesPerRow * options.entryWidth), 0) / (entriesPerRow * 2)); + xPadding = static_cast(std::max(rowWidth - (entriesPerRow * options.entryWidth), 0) / (entriesPerRow + 1)); opts.elementContent = [&] (size_t rowIndex) { gui.new_id("grid row", [&] { diff --git a/src/Screens/FileSelectScreen.cpp b/src/Screens/FileSelectScreen.cpp index 73b5a91..27ffbb0 100644 --- a/src/Screens/FileSelectScreen.cpp +++ b/src/Screens/FileSelectScreen.cpp @@ -57,8 +57,7 @@ void FileSelectScreen::gui_layout_run() { } }) { CLAY_AUTO_ID({ - .layout = { .sizing = {.width = CLAY_SIZING_FIXED(150), .height = CLAY_SIZING_GROW(0) }}, - .aspectRatio = { .aspectRatio = 1.0f } + .layout = { .sizing = {.width = CLAY_SIZING_FIXED(150), .height = CLAY_SIZING_FIXED(150) }}, }) { gui.element("ico", ImageDisplay::Data{ .imgPath = main.conf.configPath / "saveThumbnails" / (fileList[i].fileName + ".jpg"),