From d0a8c003b3de4fa2bd1b0c16ae455d4a72349c65 Mon Sep 17 00:00:00 2001 From: Alexandre Sajus Date: Fri, 10 Jan 2025 15:50:37 +0100 Subject: [PATCH] Recovers necessary part --- .../articles/sales_dashboard/step_02/step_02.md | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/docs/tutorials/articles/sales_dashboard/step_02/step_02.md b/docs/tutorials/articles/sales_dashboard/step_02/step_02.md index 08e2981ee..fe448dda1 100644 --- a/docs/tutorials/articles/sales_dashboard/step_02/step_02.md +++ b/docs/tutorials/articles/sales_dashboard/step_02/step_02.md @@ -98,13 +98,11 @@ We can now add [date selectors](../../../../refmans/gui/viselements/generic/date ```python with tgb.part(class_name="card"): with tgb.layout(columns="1 2 1"): - # First Column with tgb.part(): tgb.text("Filter **From**", mode="md") tgb.date("{start_date}") tgb.text("To") tgb.date("{end_date}") - # Second Column with tgb.part(): tgb.text("Filter Product **Category**", mode="md") tgb.selector( @@ -119,12 +117,12 @@ We can now add [date selectors](../../../../refmans/gui/viselements/generic/date lov="{subcategories}", dropdown=True, ) - # Third Column - tgb.button( - "Apply", - class_name="plain apply_button", - on_action=apply_changes, - ) + with tgb.part(class_name="text-center"): + tgb.button( + "Apply", + class_name="plain apply_button", + on_action=apply_changes, + ) ``` === "Markdown" ```