Skip to content

Commit

Permalink
fix: sticky submit bar zIndex issue
Browse files Browse the repository at this point in the history
  • Loading branch information
anish-work committed Aug 9, 2024
1 parent 0442989 commit 26cfa74
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
4 changes: 1 addition & 3 deletions daras_ai_v2/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1308,9 +1308,7 @@ def get_credits_click_url(self):
return "/account/"

def get_submit_container_props(self):
return dict(
className="position-sticky bottom-0 bg-white", style=dict(zIndex=100)
)
return dict(className="position-sticky bottom-0 bg-white")

def render_submit_button(self, key="--submit-1"):
with gui.div(**self.get_submit_container_props()):
Expand Down
15 changes: 8 additions & 7 deletions daras_ai_v2/doc_search_settings_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,14 @@ def bulk_documents_uploader(
gui.session_state[key] = filter(None, text_value.strip().splitlines())
else:
gui.session_state.pop(custom_key, None)
gui.file_uploader(
label,
label_visibility="collapsed",
key=key,
accept=accept,
accept_multiple_files=True,
)
with gui.div(className="position-relative", style=dict(zIndex=0)):
gui.file_uploader(
label,
label_visibility="collapsed",
key=key,
accept=accept,
accept_multiple_files=True,
)
gui.checkbox("Submit Links in Bulk", key=f"__custom_checkbox_{key}")
documents = gui.session_state.setdefault(key, [])
try:
Expand Down

0 comments on commit 26cfa74

Please sign in to comment.