File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1137,8 +1137,7 @@ body.mobile-topbar--merged {
11371137#menu {
11381138 z-index : 7 ;
11391139 top : 0 ;
1140- transform : none ;
1141- transition : none ;
1140+ transform : translateX (100vw );
11421141
11431142 .mobile-main-menu {
11441143 & __search {
Original file line number Diff line number Diff line change 5353 <div class= " fn__flex-column fn__none" data-type= " sidebar-agent" ></div>
5454 </div>
5555</div>
56- <div id= " menu" class= " b3-menu b3-menu--fullscreen fn__none " ></div>
56+ <div id= " menu" class= " b3-menu b3-menu--fullscreen" ></div>
5757<div id= " model" class= " side-panel side-panel--all fn__flex-column" >
5858 <div class= " toolbar toolbar--border" >
5959 <svg class= " toolbar__icon" ><use xlink:href= " #iconMenu" ></use></svg>
Original file line number Diff line number Diff line change @@ -339,7 +339,7 @@ export const popMenu = () => {
339339 closePanel ( ) ;
340340 const menuElement = document . getElementById ( "menu" ) ;
341341 menuElement . style . zIndex = ( ++ window . siyuan . zIndex ) . toString ( ) ;
342- menuElement . classList . remove ( "fn__none" ) ;
342+ menuElement . style . transform = "translateX(0px)" ;
343343} ;
344344
345345export const initRightMenu = ( app : App ) => {
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ export const goBack = () => {
4747 searchAssetsPanelElement . classList . add ( "fn__none" ) ;
4848 }
4949 return ;
50- } else if ( ( menuElement && ! menuElement . classList . contains ( "fn__none" ) ) ||
50+ } else if ( menuElement ?. style . transform === "translateX(0px)" ||
5151 document . getElementById ( "sidebar" ) ?. style . transform === "translateX(0px)" ||
5252 document . getElementById ( "sidebarRight" ) ?. style . transform === "translateX(0px)" ) {
5353 closePanel ( ) ;
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ export const closePanel = () => {
1919 const menuElement = document . getElementById ( "menu" ) ;
2020 if ( menuElement ) {
2121 menuElement . dispatchEvent ( new CustomEvent ( MOBILE_MENU_CLOSE_EVENT ) ) ;
22- menuElement . classList . add ( "fn__none" ) ;
2322 menuElement . style . removeProperty ( "transform" ) ;
2423 menuElement . style . removeProperty ( "z-index" ) ;
2524 }
You can’t perform that action at this time.
0 commit comments