Skip to content

Commit 25b7e0a

Browse files
committed
Add placeholder description
1 parent 4dea2d1 commit 25b7e0a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/fourc_webviewer/gui_utils.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,14 @@ def _prop_value_table():
448448
),
449449
key="item_key",
450450
):
451-
html.Td(v_text=("item_key",), classes="text-center")
451+
with html.Td():
452+
html.P(v_text=("item_key",), classes="text-center")
453+
html.P(
454+
"This will be the description of the item. It can be very long and will be new lined if it exceeds the width of the table cell.",
455+
style="font-size: 0.8em; color: #aaa; padding-left: 20px; padding-right: 20px;",
456+
# Optionales v_if, falls manche Keys gar keine Beschreibung haben:
457+
# v_if=("descriptions[item_key] !== undefined",),
458+
)
452459
html.Td(
453460
v_if="edit_mode == all_edit_modes['view_mode']",
454461
v_text=("item_val",),

0 commit comments

Comments
 (0)