fix(globalLinks): improve custom icon selection

This commit is contained in:
Johannes Millan 2017-10-28 23:35:12 +02:00
parent 1b7a1c9a87
commit a75f9db98d
2 changed files with 24 additions and 13 deletions

View file

@ -0,0 +1,6 @@
.edit-global-link-dialog{
.custom-icon-wrapper{
display: flex;
flex-wrap: wrap;
}
}

View file

@ -39,19 +39,24 @@
</md-option>
</md-select>
<md-autocomplete flex="100"
tabindex="1"
md-selected-item="vm.linkCopy.customIcon"
md-search-text="vm.searchIconTxt"
md-items="icon in vm.getFilteredIconSuggestions(vm.searchIconTxt)"
md-item-text="icon"
md-require-match="true"
placeholder="Select custom icon">
<md-item-template>
<span md-highlight-text="vm.searchIconTxt"
md-highlight-flags="i">{{icon}}</span>
</md-item-template>
</md-autocomplete>
<div class="custom-icon-wrapper">
<md-autocomplete tabindex="1"
md-selected-item="vm.linkCopy.customIcon"
md-search-text="vm.searchIconTxt"
md-items="icon in vm.getFilteredIconSuggestions(vm.searchIconTxt)"
md-item-text="icon"
md-require-match="true"
placeholder="Select custom icon">
<md-item-template>
<ng-md-icon icon="{{icon}}"></ng-md-icon>
<span md-highlight-text="vm.searchIconTxt"
md-highlight-flags="i">{{icon}}</span>
</md-item-template>
</md-autocomplete>
<ng-md-icon ng-if="vm.linkCopy.customIcon"
icon="{{vm.linkCopy.customIcon}}"></ng-md-icon>
</div>
</div>
</md-dialog-content>