diff --git a/app/assets/css/app.css b/app/assets/css/app.css index 4ce4aab3c..e41e1b01c 100644 --- a/app/assets/css/app.css +++ b/app/assets/css/app.css @@ -1016,3 +1016,10 @@ json-tree .branch-preview { .w-full { width: 100%; } + +/* uib-typeahead override */ +#scrollable-dropdown-menu .dropdown-menu { + max-height: 300px; + overflow-y: auto; +} +/* !uib-typeahead override */ diff --git a/app/portainer/components/tag-selector/tagSelector.html b/app/portainer/components/tag-selector/tagSelector.html index 888af452e..d893ff989 100644 --- a/app/portainer/components/tag-selector/tagSelector.html +++ b/app/portainer/components/tag-selector/tagSelector.html @@ -15,7 +15,7 @@ -
+
!_.includes(this.model, tag.Id)); if (!searchValue) { - return filteredTags.slice(0, 7); + return filteredTags; } const exactTag = _.find(this.tags, (tag) => tag.Name === searchValue); filteredTags = _.filter(filteredTags, (tag) => _.includes(tag.Name.toLowerCase(), searchValue.toLowerCase())); if (exactTag || !this.allowCreate) { - return filteredTags.slice(0, 7); + return filteredTags; } - return filteredTags.slice(0, 6).concat({ Name: `Create "${searchValue}"`, create: true, value: searchValue }); + return filteredTags.concat({ Name: `Create "${searchValue}"`, create: true, value: searchValue }); } generateSelectedTags(model, tags) {