Skip to content

Commit 95b0653

Browse files
committed
perf: nav style
1 parent f791b11 commit 95b0653

3 files changed

Lines changed: 10 additions & 8 deletions

File tree

src/app/elements/nav/nav.component.scss

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,18 @@
44
}
55
}
66

7+
:host {
8+
display: block;
9+
height: 30px;
10+
}
11+
712
.nav {
813
display: flex;
14+
height: 30px;
15+
box-sizing: border-box;
916
justify-content: space-between;
1017
background-color: var(--el-nav-bg-color);
1118
font-weight: 400;
12-
padding-bottom: 1px;
1319

1420
.ant-menu-horizontal > .ant-menu-submenu {
1521
top: 0;

src/app/pages/main/main.component.scss

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,6 @@
4242
cursor: col-resize;;
4343
}
4444

45-
elements-nav {
46-
height: 30px;
47-
}
48-
49-
5045
nz-splitter-panel .as-split-area > p {
5146
padding: 5px;
5247
}
@@ -148,4 +143,4 @@ nz-splitter-panel {
148143
// min-width: 71px !important;
149144
// }
150145
// }
151-
}
146+
}

src/sass/ant.less

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
.ant-menu-submenu.ant-menu-submenu-placement-bottom,
1010
.ant-menu-submenu.ant-menu-submenu-popup.ant-menu-submenu-placement-bottomLeft {
11-
top: 1px !important;
11+
// Slightly overlap the trigger so slow pointer movement cannot cross a hover gap.
12+
top: -1px !important;
1213
}
1314

1415
.ant-select {

0 commit comments

Comments
 (0)