From b63449319a3e073c79e5c13fca847dcbca151f5f Mon Sep 17 00:00:00 2001 From: Sara Date: Thu, 18 Sep 2025 15:34:01 +0200 Subject: [PATCH] feat: removed unneeded container and moved roll total between clear and roll button --- src/dice_container.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/dice_container.c b/src/dice_container.c index a63b40c..171d60c 100644 --- a/src/dice_container.c +++ b/src/dice_container.c @@ -148,16 +148,12 @@ void ActiveDiceContainer() { .padding = { 0, 0, 0, 10 }, }, }) { - CLAY_AUTO_ID({ - .layout.padding = { 10, 10, 10, 10 } - }) { - CLAY_TEXT(Dice_GetLastResultTotal()->clay_string, CLAY_TEXT_CONFIG({ - .BODY(), - .textColor = TextColors(0), - })); - } - TextButton(CLAY_STRING("Roll"), buttonBackground, &HandleRollSetButtonInteraction, 0); - TextButton(CLAY_STRING("Clear"), buttonBackground, &HandleClearSetButtonInteraction, 0); + TextButton(CLAY_STRING("Roll"), proceedButton, &HandleRollSetButtonInteraction, 0); + CLAY_TEXT(Dice_GetLastResultTotal()->clay_string, CLAY_TEXT_CONFIG({ + .H(3), + .textColor = TextColors(0), + })); + TextButton(CLAY_STRING("Clear"), warningButton, &HandleClearSetButtonInteraction, 0); } } }