Perf: optimize sub menu position calculation in desktop header with css replace of javascript

This commit is contained in:
Cell
2022-11-04 12:35:23 +08:00
parent de823d47da
commit f3ce0fd165
5 changed files with 4 additions and 6 deletions
+1
View File
@@ -219,6 +219,7 @@ header {
>.menu-item:hover {
& .sub-menu {
display: block;
transform: translateX(-0.5rem);
}
}