From 2b7ed05ed0230693c6a768d383488b837ce7ebec Mon Sep 17 00:00:00 2001 From: cristhianzl Date: Mon, 26 Feb 2024 14:56:30 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(GenericNode):=20remove=20unn?= =?UTF-8?q?ecessary=20line=20break=20in=20GenericNode=20component=20?= =?UTF-8?q?=F0=9F=8E=A8=20style(applies.css):=20increase=20max-width=20of?= =?UTF-8?q?=20generic-node-tooltip-div=20to=20220px=20for=20better=20text?= =?UTF-8?q?=20truncation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/src/CustomNodes/GenericNode/index.tsx | 1 - src/frontend/src/style/applies.css | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/frontend/src/CustomNodes/GenericNode/index.tsx b/src/frontend/src/CustomNodes/GenericNode/index.tsx index c71f401dc..a0dfebcd4 100644 --- a/src/frontend/src/CustomNodes/GenericNode/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/index.tsx @@ -135,7 +135,6 @@ export default function GenericNode({ const iconClassName = `generic-node-icon ${ !showNode ? "absolute inset-x-6 h-12 w-12" : "" }`; - if (iconElement && isEmoji) { return nodeIconFragment(iconElement); } else { diff --git a/src/frontend/src/style/applies.css b/src/frontend/src/style/applies.css index 9d8c7df8f..9208c4b17 100644 --- a/src/frontend/src/style/applies.css +++ b/src/frontend/src/style/applies.css @@ -276,7 +276,7 @@ @apply h-10 w-10 rounded p-1; } .generic-node-tooltip-div { - @apply ml-2 truncate; + @apply ml-2 max-w-[220px] truncate; } .generic-node-validation-div { @apply max-h-96 overflow-auto;