(pages/settings) Added a close button for the sidebar

This commit is contained in:
sercan 2021-05-12 14:14:03 +03:00
parent a9ada174b4
commit c3ed184853

View File

@ -9,8 +9,19 @@
[mode]="drawerMode"
[opened]="drawerOpened"
#drawer>
<!-- Title -->
<div class="m-8 sm:my-10 text-4xl font-extrabold tracking-tight leading-none">Settings</div>
<!-- Header -->
<div class="flex items-center justify-between m-8 mr-6 sm:my-10">
<!-- Title -->
<div class="text-4xl font-extrabold tracking-tight leading-none">Settings</div>
<!-- Close button -->
<div class="lg:hidden">
<button
mat-icon-button
(click)="drawer.close()">
<mat-icon [svgIcon]="'heroicons_outline:x'"></mat-icon>
</button>
</div>
</div>
<!-- Panel links -->
<div class="flex flex-col divide-y border-t border-b">
<ng-container *ngFor="let panel of panels; trackBy: trackByFn">