From 5e5ab5ada676f24f328ecadc05bdece40426f05a Mon Sep 17 00:00:00 2001 From: Mutasem Date: Fri, 8 Apr 2022 17:25:34 +0200 Subject: [PATCH] fix pencil bug --- .../editor-ui/src/components/NodeTitle.vue | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/packages/editor-ui/src/components/NodeTitle.vue b/packages/editor-ui/src/components/NodeTitle.vue index e1b86a4113..1a68c73e62 100644 --- a/packages/editor-ui/src/components/NodeTitle.vue +++ b/packages/editor-ui/src/components/NodeTitle.vue @@ -18,7 +18,9 @@
{{ value }} - +
+ +
@@ -75,19 +77,15 @@ export default Vue.extend({ line-height: var(--font-line-height-compact); overflow-wrap: anywhere; padding-right: var(--spacing-s); + overflow: hidden; } .title { max-height: 100px; display: -webkit-box; - overflow: hidden; -webkit-line-clamp: 5; -webkit-box-orient: vertical; color: var(--color-text-dark); - - > *:first-child { - padding-right: var(--spacing-3xs); - } } .hoverable { @@ -106,8 +104,16 @@ export default Vue.extend({ .editIcon { display: none; - font-size: var(--font-size-l); + font-size: var(--font-size-xs); color: var(--color-text-base); + position: absolute; + bottom: 0; +} + +.editIconContainer { + display: inline-block; + position: relative; + width: 0; } .editButtons {