Spaces:
Sleeping
Sleeping
Minor alignment fix
Browse files
ui.py
CHANGED
|
@@ -93,7 +93,11 @@ def render_role_sidebar(display_speaker_tokens, token_display_map):
|
|
| 93 |
for i, category in enumerate(st.session_state.categories):
|
| 94 |
ms_key = f"multiselect_{category}"
|
| 95 |
label_col, trash_col = st.sidebar.columns([5, 1])
|
| 96 |
-
label_col.markdown(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 97 |
trash_col.button(
|
| 98 |
"🗑️", key=f"remove_{category}",
|
| 99 |
on_click=removeCategory, args=(i,),
|
|
@@ -154,7 +158,11 @@ def render_rename_sidebar(currFile, speakerNames, display_speaker_tokens, token_
|
|
| 154 |
if raw_to_display.get(t, t) in valid_display
|
| 155 |
]
|
| 156 |
label_col, trash_col = st.sidebar.columns([5, 1])
|
| 157 |
-
label_col.markdown(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 158 |
trash_col.button(
|
| 159 |
"🗑️", key=f"remove_grename_{idx}",
|
| 160 |
on_click=removeGlobalRename, args=(idx,),
|
|
|
|
| 93 |
for i, category in enumerate(st.session_state.categories):
|
| 94 |
ms_key = f"multiselect_{category}"
|
| 95 |
label_col, trash_col = st.sidebar.columns([5, 1])
|
| 96 |
+
label_col.markdown(
|
| 97 |
+
f"<div style='display:flex;align-items:flex-end;height:100%;'>"
|
| 98 |
+
f"<strong>{category}</strong></div>",
|
| 99 |
+
unsafe_allow_html=True,
|
| 100 |
+
)
|
| 101 |
trash_col.button(
|
| 102 |
"🗑️", key=f"remove_{category}",
|
| 103 |
on_click=removeCategory, args=(i,),
|
|
|
|
| 158 |
if raw_to_display.get(t, t) in valid_display
|
| 159 |
]
|
| 160 |
label_col, trash_col = st.sidebar.columns([5, 1])
|
| 161 |
+
label_col.markdown(
|
| 162 |
+
f"<div style='display:flex;align-items:flex-end;height:100%;'>"
|
| 163 |
+
f"<strong>{entry['name']}</strong></div>",
|
| 164 |
+
unsafe_allow_html=True,
|
| 165 |
+
)
|
| 166 |
trash_col.button(
|
| 167 |
"🗑️", key=f"remove_grename_{idx}",
|
| 168 |
on_click=removeGlobalRename, args=(idx,),
|