Skip to content

Commit 80b424d

Browse files
author
Zhicheng WANG
committed
fix: 修改导航结构
1 parent f2c56a3 commit 80b424d

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/app/pages/component-sidenav/component-nav.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
[routerLink]="'/' + section+ '/' + component.id"
66
routerLinkActive="docs-component-viewer-sidenav-item-selected"
77
[attr.aria-current]="currentItemId === component.id ? 'page': 'false'">
8-
{{component.nameCn}}<br/><small>{{component.name}}</small>
8+
{{component.nameCn}}
9+
<small>{{component.name}}</small>
910
</a>
1011
</mat-nav-list>
1112
</div>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
small {
22
opacity: 0.4;
33
}
4+
5+
mat-nav-list {
6+
&::ng-deep {
7+
.mat-list-item-content {
8+
flex-wrap: wrap;
9+
}
10+
}
11+
}

0 commit comments

Comments
 (0)