bach 1 year ago
parent
commit
3753216bd0
2 changed files with 5 additions and 3 deletions
  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)
         }
       }