Skip to content

Commit afea99a

Browse files
committed
get progressbar to display correctly in extensions tab
1 parent 965c728 commit afea99a

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

javascript/extensions.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function extensions_check() {
3333

3434

3535
var id = randomId();
36-
requestProgress(id, gradioApp().getElementById('extensions_installed_top'), null, function() {
36+
requestProgress(id, gradioApp().getElementById('extensions_installed_html'), null, function() {
3737

3838
});
3939

modules/ui_extensions.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -557,8 +557,12 @@ def create_ui():
557557
msg = '"--disable-extra-extensions" was used, remove it to load all extensions again'
558558
html = f'<span style="color: var(--primary-400);">{msg}</span>'
559559

560-
info = gr.HTML(html)
561-
extensions_table = gr.HTML('Loading...')
560+
with gr.Row():
561+
info = gr.HTML(html)
562+
563+
with gr.Row(elem_classes="progress-container"):
564+
extensions_table = gr.HTML('Loading...', elem_id="extensions_installed_html")
565+
562566
ui.load(fn=extension_table, inputs=[], outputs=[extensions_table])
563567

564568
apply.click(

style.css

+5
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,11 @@ table.popup-table .link{
517517
background: #b4c0cc;
518518
border-radius: 3px !important;
519519
top: -20px;
520+
width: 100%;
521+
}
522+
523+
.progress-container{
524+
position: relative;
520525
}
521526

522527
[id$=_results].mobile{

0 commit comments

Comments
 (0)