bach 1 年之前
父節點
當前提交
3753216bd0
共有 2 個文件被更改,包括 5 次插入3 次删除
  1. 3 1
      assets/css/app.scss
  2. 2 2
      src/components/Content/EdText.vue

+ 3 - 1
assets/css/app.scss

@@ -712,7 +712,9 @@ section[role="main-content"]{
             font-size: 1.134em;
             line-height: $base-line;
             margin-bottom: $base-line / 2;
-
+            span.no-wrap{
+              white-space: nowrap;
+            }
             span.persName,
             span.placeName,
             span.objectName{

+ 2 - 2
src/components/Content/EdText.vue

@@ -113,8 +113,8 @@ export default {
               icon = '<span class="index-item-icon mdi mdi-account"></span>'
               break
           }
-          // newspan = `<span class="no-wrap">${items[i]}${icon}</span>`
-          newspan = `${items[i]}&nbsp;${icon}`
+          newspan = `<span class="no-wrap">${items[i]}&nbsp;${icon}</span>`
+          // newspan = `${items[i]}&nbsp;${icon}`
           this.teiparsed = this.teiparsed.replace(items[i], newspan)
         }
       }