Преглед на файлове

:art: https://github.com/siyuan-note/siyuan/issues/13359

Vanessa преди 6 месеца
родител
ревизия
83c44cf25b
променени са 2 файла, в които са добавени 3 реда и са изтрити 4 реда
  1. 0 1
      app/src/assets/scss/business/_av.scss
  2. 3 3
      app/src/protyle/render/av/relation.ts

+ 0 - 1
app/src/assets/scss/business/_av.scss

@@ -507,7 +507,6 @@
 
       &__label {
         overflow: hidden;
-        @extend .fn__ellipsis;
       }
 
       &__icon.fn__grab {

+ 3 - 3
app/src/protyle/render/av/relation.ts

@@ -210,13 +210,13 @@ export const toggleUpdateRelationBtn = (menuItemsElement: HTMLElement, avId: str
 const genSelectItemHTML = (type: "selected" | "empty" | "unselect", id?: string, isDetached?: boolean, text?: string) => {
     if (type === "selected") {
         return `<svg class="b3-menu__icon fn__grab"><use xlink:href="#iconDrag"></use></svg>
-<span class="b3-menu__label${isDetached ? "" : " popover__block"}" ${isDetached ? "" : 'style="color:var(--b3-protyle-inline-blockref-color)"'} data-id="${id}">${text}</span>
+<span class="b3-menu__label fn__ellipsis ${isDetached ? "" : " popover__block"}" ${isDetached ? "" : 'style="color:var(--b3-protyle-inline-blockref-color)"'} data-id="${id}">${text}</span>
 <svg class="b3-menu__action"><use xlink:href="#iconMin"></use></svg>`;
     }
     if (type === "empty") {
         if (id) {
             return `<button class="b3-menu__item" data-type="setRelationCell">
-    <span class="b3-menu__label">${window.siyuan.languages.newRowInRelation.replace("${x}", text).replace("${y}", id)}</span>
+    <span class="b3-menu__label fn__ellipsis">${window.siyuan.languages.newRowInRelation.replace("${x}", text).replace("${y}", id)}</span>
 </button>`;
         }
         return `<button class="b3-menu__item">
@@ -225,7 +225,7 @@ const genSelectItemHTML = (type: "selected" | "empty" | "unselect", id?: string,
     }
     if (type == "unselect") {
         return `<button data-id="${id}" class="b3-menu__item" data-type="setRelationCell">
-    <span class="b3-menu__label${isDetached ? "" : " popover__block"}" ${isDetached ? "" : 'style="color:var(--b3-protyle-inline-blockref-color)"'} data-id="${id}">${text}</span>
+    <span class="b3-menu__label fn__ellipsis${isDetached ? "" : " popover__block"}" ${isDetached ? "" : 'style="color:var(--b3-protyle-inline-blockref-color)"'} data-id="${id}">${text}</span>
     <svg class="b3-menu__action"><use xlink:href="#iconAdd"></use></svg>
 </button>`;
     }