Spaces:
Running
Running
Richard
commited on
Commit
·
3d048a0
1
Parent(s):
8886757
Minor UI adjustments
Browse files- components/content.py +1 -1
- components/snackbar.py +2 -1
components/content.py
CHANGED
@@ -12,7 +12,7 @@ def markdown(text: str, has_copy_to_clipboard: bool = False):
|
|
12 |
with copy_to_clipboard_component(text=text):
|
13 |
with me.content_button(
|
14 |
type="icon",
|
15 |
-
style=me.Style(cursor="pointer", background=me.theme_var("surface-container")),
|
16 |
):
|
17 |
me.icon("content_copy")
|
18 |
markedjs_component(text)
|
|
|
12 |
with copy_to_clipboard_component(text=text):
|
13 |
with me.content_button(
|
14 |
type="icon",
|
15 |
+
style=me.Style(cursor="pointer", background=me.theme_var("surface-container-low")),
|
16 |
):
|
17 |
me.icon("content_copy")
|
18 |
markedjs_component(text)
|
components/snackbar.py
CHANGED
@@ -66,7 +66,8 @@ def snackbar(
|
|
66 |
if action_label
|
67 |
else me.Padding.all(15),
|
68 |
pointer_events="auto",
|
69 |
-
|
|
|
70 |
)
|
71 |
):
|
72 |
me.text(label, style=me.Style(color=me.theme_var("surface-container-lowest")))
|
|
|
66 |
if action_label
|
67 |
else me.Padding.all(15),
|
68 |
pointer_events="auto",
|
69 |
+
min_width=300,
|
70 |
+
max_width=500,
|
71 |
)
|
72 |
):
|
73 |
me.text(label, style=me.Style(color=me.theme_var("surface-container-lowest")))
|