Skip to content

Commit

Permalink
get progressbar to display correctly in extensions tab
Browse files Browse the repository at this point in the history
  • Loading branch information
AUTOMATIC1111 committed Aug 30, 2023
1 parent 965c728 commit afea99a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion javascript/extensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function extensions_check() {


var id = randomId();
requestProgress(id, gradioApp().getElementById('extensions_installed_top'), null, function() {
requestProgress(id, gradioApp().getElementById('extensions_installed_html'), null, function() {

});

Expand Down
8 changes: 6 additions & 2 deletions modules/ui_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,8 +557,12 @@ def create_ui():
msg = '"--disable-extra-extensions" was used, remove it to load all extensions again'
html = f'<span style="color: var(--primary-400);">{msg}</span>'

info = gr.HTML(html)
extensions_table = gr.HTML('Loading...')
with gr.Row():
info = gr.HTML(html)

with gr.Row(elem_classes="progress-container"):
extensions_table = gr.HTML('Loading...', elem_id="extensions_installed_html")

ui.load(fn=extension_table, inputs=[], outputs=[extensions_table])

apply.click(
Expand Down
5 changes: 5 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,11 @@ table.popup-table .link{
background: #b4c0cc;
border-radius: 3px !important;
top: -20px;
width: 100%;
}

.progress-container{
position: relative;
}

[id$=_results].mobile{
Expand Down

0 comments on commit afea99a

Please sign in to comment.