Skip to content

Commit

Permalink
Make text2img Metadata Panel to have max height #197
Browse files Browse the repository at this point in the history
  • Loading branch information
anapnoe committed Nov 7, 2023
1 parent 9d387f4 commit aff3c14
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
</button>
</div>
</div>
<div id="acc-ec-3" class="accordion-container">
<div id="acc-ec-3" class="accordion-container .info-results-container">
<div id="flexbox-e4" class="flexbox col">
<div id="portal-e30" data-parent-selector="#tab_extras" data-selector="#html_info_x_extras" class="portal hide-empty">
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
</button>
</div>
</div>
<div id="acc-c-33" class="accordion-container">
<div id="acc-c-33" class="accordion-container info-results-container">
<div id="flexbox-43" class="flexbox col">
<div id="portal-293" data-parent-selector="#tab_img2img" data-selector="#download_files_img2img" data-vis="true" class="portal shrink hide-empty">
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
</button>
</div>
</div>
<div id="acc-c-3" class="accordion-container">
<div id="acc-c-3" class="accordion-container info-results-container">
<div id="flexbox-4" class="flexbox col">
<div id="portal-29" data-parent-selector="#tab_txt2img" data-selector="#download_files_txt2img" data-vis="true" class="portal shrink hide-empty">
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,6 @@ function uiuxOptionSettings(){
uiux_show_labels_tabs(e.target.checked, true);
});
uiux_show_labels_tabs(window.opts.uiux_show_labels_tabs);


}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"uiux_default_layout": shared.OptionInfo("Auto", "Layout", gr.Radio, {"choices": ["Auto","Desktop", "Mobile"]}),
"uiux_show_labels_aside": shared.OptionInfo(False, "Show labels for aside tabs"),
"uiux_show_labels_main": shared.OptionInfo(False, "Show labels for main tabs"),
"uiux_show_labels_tabs": shared.OptionInfo(False, "Show labels for page tabs"),
"uiux_show_labels_tabs": shared.OptionInfo(False, "Show labels for page tabs"),
"uiux_ignore_overrides": shared.OptionInfo([], "Ignore Overrides", gr.CheckboxGroup, lambda: {"choices": list(mapping)})
}))

Expand Down
6 changes: 6 additions & 0 deletions extensions-builtin/anapnoe-sd-uiux/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,7 @@ body {
font-size: 13px;
line-height: 16px;
color: var(--ae-label-color);
overflow-wrap: anywhere;
}

*.gradio-image .image-container {
Expand Down Expand Up @@ -3260,6 +3261,11 @@ input[type="checkbox"] {
justify-content: flex-start;
}

.info-results-container {
overflow-y: auto;
max-height:33vh;
}

@media (max-width: 768px) {
.xtabs-tab span {
display: none;
Expand Down

0 comments on commit aff3c14

Please sign in to comment.