This commit is contained in:
parent
7b89324981
commit
a6bf6dbac3
|
|
@ -475,17 +475,17 @@ def dialog_showing(item: Tuple[str, Dialog]) -> rx.Component:
|
|||
component_map={
|
||||
"p": lambda text: rx.text(
|
||||
text,
|
||||
margin="6px 0",
|
||||
line_height="1.5",
|
||||
margin="4px 0",
|
||||
line_height="1.75",
|
||||
word_wrap="break-word",
|
||||
word_break="break-all",
|
||||
white_space="pre-line",
|
||||
),
|
||||
"h1": lambda text: rx.text(
|
||||
text,
|
||||
margin="12px 0 6px",
|
||||
line_height="1.5",
|
||||
font_size="20px",
|
||||
margin="8px 0 4px",
|
||||
line_height="1.75",
|
||||
font_size="18px",
|
||||
font_weight="var(--prismui-font-weight-3)",
|
||||
word_wrap="break-word",
|
||||
word_break="break-all",
|
||||
|
|
@ -493,9 +493,9 @@ def dialog_showing(item: Tuple[str, Dialog]) -> rx.Component:
|
|||
),
|
||||
"h2": lambda text: rx.text(
|
||||
text,
|
||||
margin="10px 0 6px",
|
||||
line_height="1.5",
|
||||
font_size="18px",
|
||||
margin="6px 0 4px",
|
||||
line_height="1.75",
|
||||
font_size="16px",
|
||||
font_weight="var(--prismui-font-weight-3)",
|
||||
word_wrap="break-word",
|
||||
word_break="break-all",
|
||||
|
|
@ -503,9 +503,8 @@ def dialog_showing(item: Tuple[str, Dialog]) -> rx.Component:
|
|||
),
|
||||
"h3": lambda text: rx.text(
|
||||
text,
|
||||
margin="8px 0 6px",
|
||||
line_height="1.5",
|
||||
font_size="16px",
|
||||
margin="4px 0",
|
||||
line_height="1.75",
|
||||
font_weight="var(--prismui-font-weight-3)",
|
||||
word_wrap="break-word",
|
||||
word_break="break-all",
|
||||
|
|
@ -519,37 +518,38 @@ def dialog_showing(item: Tuple[str, Dialog]) -> rx.Component:
|
|||
"ul": lambda children: rx.vstack(
|
||||
children,
|
||||
align_items="flex-start",
|
||||
margin="6px 0",
|
||||
margin="4px 0",
|
||||
style={"padding": "0 !important"},
|
||||
),
|
||||
"ol": lambda children: rx.vstack(
|
||||
children,
|
||||
align_items="flex-start",
|
||||
margin="6px 0",
|
||||
margin="4px 0",
|
||||
style={"padding": "0 !important"},
|
||||
),
|
||||
"li": lambda text: rx.hstack(
|
||||
rx.icon(
|
||||
"dot",
|
||||
flex_shrink="0",
|
||||
width="21px",
|
||||
height="21px",
|
||||
color="var(--prismui-color-5)",
|
||||
rx.box(
|
||||
width="4.5px",
|
||||
height="4.5px",
|
||||
margin_right="8px",
|
||||
background_color="var(--prismui-color-5)",
|
||||
border_radius="50%",
|
||||
),
|
||||
rx.text(
|
||||
text,
|
||||
line_height="1.5",
|
||||
line_height="1.75",
|
||||
word_wrap="break-word",
|
||||
word_break="break-all",
|
||||
white_space="pre-line",
|
||||
),
|
||||
align_items="flex-start",
|
||||
margin_bottom="6px",
|
||||
align_items="center",
|
||||
justify_content="flex-start",
|
||||
margin_bottom="4px",
|
||||
),
|
||||
"hr": lambda _: rx.divider(
|
||||
height="1px",
|
||||
margin="12px 0",
|
||||
background_color="transparent",
|
||||
background_color="var(--prismui-background-color-6)",
|
||||
),
|
||||
"table": lambda children: rx.el.table(
|
||||
children,
|
||||
|
|
|
|||
Loading…
Reference in New Issue