From e2c7a2262985944f2a8d4758383d765d044e0c2d Mon Sep 17 00:00:00 2001 From: Sara Date: Fri, 19 Sep 2025 12:33:20 +0200 Subject: [PATCH] fix: active dice set container now shows all dice properly --- src/dice_container.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/dice_container.c b/src/dice_container.c index c6d6f38..9608891 100644 --- a/src/dice_container.c +++ b/src/dice_container.c @@ -126,16 +126,15 @@ void ActiveDiceContainer() { }) { CLAY(CLAY_ID("ActiveDiceInner"), { .layout = { - .sizing = { CLAY_SIZING_GROW(), CLAY_SIZING_GROW() }, + .sizing = { CLAY_SIZING_FIT(), CLAY_SIZING_GROW() }, .layoutDirection = CLAY_LEFT_TO_RIGHT, - .childAlignment = { CLAY_ALIGN_X_CENTER, CLAY_ALIGN_Y_CENTER }, + .childAlignment = { CLAY_ALIGN_X_LEFT, CLAY_ALIGN_Y_CENTER }, .childGap = 16, .padding = { 100, 100, 0, 0 }, }, .clip = { - true, true, - { Clay_GetScrollOffset().x, 0 }, - }, + true, true, { Clay_GetScrollOffset().x, 0 } + } }) { size_t dice_count = 0; enum Dice_Die const *dice = Dice_GetActiveSet(&dice_count);