Skip to content

Commit

Permalink
Fix: dropdown layout in menu detail (#478)
Browse files Browse the repository at this point in the history
* fix: improve layout of dropdowns in menu detail

* fix: improve cleaning project
  • Loading branch information
HenryT-CG authored Jan 8, 2025
1 parent 3bbfa14 commit 56b99cd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"scripts": {
"build": "ng build",
"check": "ng lint --cache=true && npx prettier -c --cache .",
"clean": "npm cache clean --force && ng cache clean && rm -f .eslintcache && rm -f ./node_modules/.cache/prettier/.prettier-cache",
"clean": "npm cache clean --force && ng cache clean && rm -rf dist reports .angular .eslintcache ./node_modules/.cache/prettier/.prettier-cache",
"lint": "ng lint --cache=true",
"format": "ng lint --fix",
"eslint": "eslint --quiet --ext .js,.ts src",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<p-dialog
#menuDetailDialog
[header]="'DIALOG.MENU.HEADER.' + changeMode | translate"
[(visible)]="displayDetailDialog"
(onHide)="onCloseDetailDialog()"
Expand Down Expand Up @@ -139,23 +140,23 @@
formControlName="badge"
[showClear]="true"
[options]="iconItems"
scrollHeight="150px"
[appendTo]="'body'"
[showClear]="true"
[ariaLabel]="'MENU_ITEM.BADGE' | translate"
[pTooltip]="'MENU_ITEM.TOOLTIP.BADGE' | translate"
tooltipPosition="top"
tooltipEvent="hover"
>
<ng-template let-ico pTemplate="selectedItem">
<div class="flex">
<span class="pi pi-{{ ico.value }} mr-3"> </span>
<span>{{ ico.label }}</span>
<ng-template let-icon pTemplate="selectedItem">
<div class="flex align-items-center">
<span class="pi pi-{{ icon.value }} mr-3"> </span>
<span>{{ icon.label }}</span>
</div>
</ng-template>
<ng-template let-ico pTemplate="item">
<div class="flex">
<span class="pi pi-{{ ico.value }} mr-3"> </span>
<span>{{ ico.label }}</span>
<ng-template let-icon pTemplate="item">
<div class="flex align-items-center">
<span class="pi pi-{{ icon.value }} mr-3"> </span>
<span>{{ icon.label }}</span>
</div>
</ng-template>
</p-dropdown>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

@include danger-action;
@include compact-dropdown-list-items;
@include dropdown-zebra-rows;
@include correct-autocomplete;
@include correct-select-button;
@include search-criteria-select-button-slim;
Expand Down

0 comments on commit 56b99cd

Please sign in to comment.