Fixed bug where model directory dropdown was offscreen.

- Parent element of dropdown needs to be `position: relative` in order to get the correct viewport offset. The fix only manually in three locations. Needs a redesign.
This commit is contained in:
Christian Bastian
2024-07-28 06:31:38 -04:00
parent 0159534c01
commit cad33b5b42
2 changed files with 8 additions and 3 deletions

View File

@@ -598,6 +598,11 @@
}
/* search dropdown */
.model-manager .input-dropdown-container {
position: relative;
}
.model-manager .search-models {
display: flex;
flex: 1;

View File

@@ -2219,7 +2219,7 @@ class ModelInfo {
button.disabled = false;
},
}).element,
$el("div.search-models", [
$el("div.search-models.input-dropdown-container", [
moveDestinationInput,
searchDropdown.element,
]),
@@ -3531,7 +3531,7 @@ class DownloadView {
button.disabled = success;
},
}).element,
$el("div.row.tab-header-flex-block", [
$el("div.row.tab-header-flex-block.input-dropdown-container", [
el_saveDirectoryPath,
searchDropdown.element,
]),
@@ -3810,7 +3810,7 @@ class BrowseView {
),
]),
$el("div.row.tab-header-flex-block", [
$el("div.search-models", [
$el("div.search-models.input-dropdown-container", [
searchInput,
searchDropdown.element,
]),