From cb73163ca951e5b196e9380d265bbd80a56f6582 Mon Sep 17 00:00:00 2001 From: pourhakimi <84860195+pourhakimi@users.noreply.github.com> Date: Fri, 27 Dec 2024 14:00:52 +0200 Subject: [PATCH] Updated FAQ pantry item --- buridan_ui/pantry/faq/v1.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/buridan_ui/pantry/faq/v1.py b/buridan_ui/pantry/faq/v1.py index 5a8b0ad..dd056dc 100644 --- a/buridan_ui/pantry/faq/v1.py +++ b/buridan_ui/pantry/faq/v1.py @@ -29,26 +29,21 @@ def txt(string: str, shade: int) -> rx.Component: - return rx.text(string, weight="bold", color=rx.color("gray", shade)) + return rx.text(string, weight="bold", color=rx.color("gray", shade), size="1") def question_and_answer(question: str, answer: str): return rx.hstack( - rx.vstack( - rx.box(rx.icon(tag="circle-help", size=15), padding="5px 0px"), - align="start", - height="100%", - ), rx.vstack( txt(question, 11), txt(answer, 12), align="start", - spacing="1", + spacing="2", ), width="100%", align="start", padding="16px 0px", - border_top=f"0.75px solid {rx.color('slate', 10)}", + border_top=f"0.75px solid {rx.color('gray', 4)}", ) @@ -56,7 +51,7 @@ def faq_v1(): return rx.vstack( rx.heading( "Frequently Asked Questions", - size="5", + size="4", weight="bold", align="center", ),