-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(admin-ui): Fix mobile layout for asset list
Fixes #2206
- Loading branch information
1 parent
161b757
commit 5f7ac8c
Showing
5 changed files
with
76 additions
and
58 deletions.
There are no files selected for viewing
25 changes: 13 additions & 12 deletions
25
packages/admin-ui/src/lib/catalog/src/components/asset-list/asset-list.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
84 changes: 43 additions & 41 deletions
84
...i/src/lib/core/src/shared/components/asset-search-input/asset-search-input.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,44 @@ | ||
<div class="flex center"> | ||
<ng-select | ||
[addTag]="addTagFn" | ||
[placeholder]="'catalog.search-asset-name-or-tag' | translate" | ||
[items]="tags" | ||
[searchFn]="filterTagResults" | ||
[hideSelected]="true" | ||
[multiple]="true" | ||
[markFirst]="false" | ||
(change)="onSelectChange($event)" | ||
#selectComponent | ||
> | ||
<ng-template ng-header-tmp> | ||
<div | ||
class="search-header" | ||
*ngIf="selectComponent.searchTerm" | ||
[class.selected]="isSearchHeaderSelected()" | ||
(click)="selectComponent.selectTag()" | ||
<ng-select | ||
[addTag]="addTagFn" | ||
[placeholder]="'catalog.search-asset-name-or-tag' | translate" | ||
[items]="tags" | ||
[searchFn]="filterTagResults" | ||
[hideSelected]="true" | ||
[multiple]="true" | ||
[markFirst]="false" | ||
(change)="onSelectChange($event)" | ||
#selectComponent | ||
> | ||
<ng-template ng-header-tmp> | ||
<div | ||
class="search-header" | ||
*ngIf="selectComponent.searchTerm" | ||
[class.selected]="isSearchHeaderSelected()" | ||
(click)="selectComponent.selectTag()" | ||
> | ||
{{ 'catalog.search-for-term' | translate }}: {{ selectComponent.searchTerm }} | ||
</div> | ||
</ng-template> | ||
<ng-template ng-label-tmp let-item="item" let-clear="clear"> | ||
<ng-container *ngIf="item.value"> | ||
<vdr-chip [colorFrom]="item.value" icon="close" (iconClick)="clear(item)" | ||
> | ||
{{ 'catalog.search-for-term' | translate }}: {{ selectComponent.searchTerm }} | ||
</div> | ||
</ng-template> | ||
<ng-template ng-label-tmp let-item="item" let-clear="clear"> | ||
<ng-container *ngIf="item.value"> | ||
<vdr-chip [colorFrom]="item.value" icon="close" (iconClick)="clear(item)" | ||
><clr-icon shape="tag" class="mr2"></clr-icon> {{ item.value }}</vdr-chip | ||
> | ||
</ng-container> | ||
<ng-container *ngIf="!item.value"> | ||
<vdr-chip [icon]="'times'" (iconClick)="clear(item)">"{{ item.label || item }}"</vdr-chip> | ||
</ng-container> | ||
</ng-template> | ||
<ng-template ng-option-tmp let-item="item" let-index="index" let-search="searchTerm"> | ||
<ng-container *ngIf="item.value"> | ||
<vdr-chip [colorFrom]="item.value" | ||
><clr-icon shape="tag" class="mr2"></clr-icon> {{ item.value }}</vdr-chip | ||
> | ||
</ng-container> | ||
</ng-template> | ||
</ng-select> | ||
<ng-content></ng-content> | ||
</div> | ||
<clr-icon shape="tag" class="mr2"></clr-icon> | ||
{{ item.value }}</vdr-chip | ||
> | ||
</ng-container> | ||
<ng-container *ngIf="!item.value"> | ||
<vdr-chip [icon]="'times'" (iconClick)="clear(item)">"{{ item.label || item }}"</vdr-chip> | ||
</ng-container> | ||
</ng-template> | ||
<ng-template ng-option-tmp let-item="item" let-index="index" let-search="searchTerm"> | ||
<ng-container *ngIf="item.value"> | ||
<vdr-chip [colorFrom]="item.value" | ||
> | ||
<clr-icon shape="tag" class="mr2"></clr-icon> | ||
{{ item.value }}</vdr-chip | ||
> | ||
</ng-container> | ||
</ng-template> | ||
</ng-select> | ||
<ng-content></ng-content> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters