Skip to content

Commit

Permalink
Fix user sidebar menu icons (#237)
Browse files Browse the repository at this point in the history
* fix: layout of user sidebar menu

* fix: icon position
  • Loading branch information
HenryT-CG authored Jul 16, 2024
1 parent c5b6d44 commit d6b01b0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<p-accordion [activeIndex]="null">
<p-accordion [activeIndex]="null" expandIcon="pi pi-chevron-right" collapseIcon="pi pi-chevron-down">
<p-accordionTab>
<ng-template pTemplate="header">
<ocx-slot name="onecx-avatar-image"></ocx-slot>
<span class="flex flex-column ml-3 row-gap-1">
<span id="user-sidebar-display-name" class="font-bold">{{ displayName$ | async }}</span>
<span id="user-sidebar-display-name" class="text-sm">{{ organization$ | async }}</span>
<span *ngIf="organization$ | async as orgId" id="user-sidebar-orgid" class="text-sm">{{ orgId }}</span>
</span>
</ng-template>
<ng-template pTemplate="content">
Expand Down
17 changes: 12 additions & 5 deletions src/app/remotes/user-sidebar-menu/user-sidebar-menu.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,20 @@
}

::ng-deep {
.p-accordion-tab {
box-shadow: none !important;
}
.p-panelmenu-panel {
box-shadow: none !important;
}
.p-accordion-content {
padding: 0 !important;
.p-accordion {
.p-accordion-tab {
box-shadow: none !important;
&:not(.p-accordion-tab-active) .p-accordion-toggle-icon,
&.p-accordion-tab-active .p-accordion-toggle-icon {
transform: none;
margin-right: 0;
}
}
.p-accordion-content {
padding: 0 !important;
}
}
}

0 comments on commit d6b01b0

Please sign in to comment.