Browse Source

:art: fix https://github.com/siyuan-note/siyuan/issues/5217

Vanessa 3 years ago
parent
commit
0418fa656c

+ 1 - 0
app/src/assets/scss/base.scss

@@ -47,6 +47,7 @@ ctrl+p 搜索: 199
 progressLoading: 400
 progressLoading: 400
 #windowControls: 502
 #windowControls: 502
 .b3-snackbar: 503
 .b3-snackbar: 503
+.side-panel: 600
 */
 */
 
 
 .inbox {
 .inbox {

+ 1 - 1
app/src/assets/scss/mobile.scss

@@ -148,7 +148,7 @@
   background-color: var(--b3-theme-surface);
   background-color: var(--b3-theme-surface);
   height: 100%;
   height: 100%;
   width: 80vw;
   width: 80vw;
-  z-index: 100;
+  z-index: 600;
   transition: var(--b3-transition);
   transition: var(--b3-transition);
 
 
   &--left {
   &--left {

+ 1 - 1
app/src/mobile/util/search.ts

@@ -13,7 +13,7 @@ const onRecentblocks = (data: IWebSocketData) => {
     <svg class="b3-list-item__graphic"><use xlink:href="#${getIconByType(item.type)}"></use></svg>
     <svg class="b3-list-item__graphic"><use xlink:href="#${getIconByType(item.type)}"></use></svg>
     <span class="b3-list-item__text">${item.content}</span>
     <span class="b3-list-item__text">${item.content}</span>
 </div>
 </div>
-<div class="b3-list-item__meta">${item.hPath}</div>
+<div class="b3-list-item__meta">${Lute.EscapeHTMLStr(item.hPath)}</div>
 </div>`;
 </div>`;
     });
     });
     document.querySelector("#searchPanel").innerHTML = resultHTML;
     document.querySelector("#searchPanel").innerHTML = resultHTML;