File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,7 +51,8 @@ export const about = {
5151 ${ window . siyuan . languages . about1 } ${ "harmony" === window . siyuan . config . system . container ? " • " + window . siyuan . languages . feedback + " 845765@qq.com" : "" }
5252 </div>
5353 <div class="b3-label">
54- <div class="b3-label__text">${ window . siyuan . languages . accountSupport1 } </div><br>
54+ <div class="b3-label__text">${ window . siyuan . languages . accountSupport1 } </div>
55+ <div class="fn__hr"></div>
5556 <div class="b3-label__text">${ window . siyuan . languages . accountSupport2 } </div>
5657 </div>
5758</div>` ;
Original file line number Diff line number Diff line change @@ -20,13 +20,12 @@ import type {TConfigTab} from "../../config/types";
2020import { openMobileConfigTab } from "./openConfigTab" ;
2121import { getCurrentEditor } from "../editor" ;
2222
23- const CONFIG_MENU_ID_TO_TAB = new Map < string , TConfigTab > (
24- getConfigTabDefs ( ) . map ( def => [ configTabToMenuId ( def . id ) , def . id ] )
25- ) ;
26-
2723const getConfigTabFromMenuTarget = ( target : HTMLElement ) : TConfigTab | undefined => {
2824 const item = target . closest ( ".b3-menu__item" ) as HTMLElement | null ;
29- return item ?. id ? CONFIG_MENU_ID_TO_TAB . get ( item . id ) : undefined ;
25+ if ( ! item ?. id ) {
26+ return undefined ;
27+ }
28+ return getConfigTabDefs ( ) . find ( def => configTabToMenuId ( def . id ) === item . id ) ?. id ;
3029} ;
3130
3231export const popMenu = ( ) => {
You can’t perform that action at this time.
0 commit comments