Skip to content

Commit

Permalink
[improve] remove side nav user avatar (#2742)
Browse files Browse the repository at this point in the history
Co-authored-by: Zhang Yuxuan <[email protected]>
Co-authored-by: shown <[email protected]>
  • Loading branch information
3 people authored Sep 24, 2024
1 parent 5dabc7b commit 7e3d009
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions web-app/src/app/layout/basic/basic.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { CONSTANTS } from '../../shared/constants';
@Component({
selector: 'layout-basic',
template: `
<layout-default [options]="options" [asideUser]="asideUserTpl" [nav]="navTpl" [content]="contentTpl" [customError]="null">
<layout-default [options]="options" [nav]="navTpl" [content]="contentTpl" [customError]="null">
<layout-default-header-item direction="left">
<a layout-default-header-item-trigger href="//github.com/apache/hertzbeat" target="_blank">
<i nz-icon nzType="github"></i>
Expand Down Expand Up @@ -57,15 +57,6 @@ import { CONSTANTS } from '../../shared/constants';
<layout-default-header-item direction="right">
<header-user></header-user>
</layout-default-header-item>
<ng-template #asideUserTpl>
<div class="alain-default__aside-user" style="cursor: default;">
<nz-avatar class="alain-default__aside-user-avatar" [nzSrc]="avatar"></nz-avatar>
<div class="alain-default__aside-user-info">
<strong>{{ user.name }}</strong>
<p class="mb0">{{ role }}</p>
</div>
</div>
</ng-template>
<ng-template #navTpl>
<layout-default-nav class="d-block py-lg" openStrictly="true"></layout-default-nav>
</ng-template>
Expand Down

0 comments on commit 7e3d009

Please sign in to comment.