From dee72f17dfa31c7c80593d7622462d5b18112e6d Mon Sep 17 00:00:00 2001 From: MFA-X-AI <68586800+MFA-X-AI@users.noreply.github.com> Date: Thu, 6 Apr 2023 10:33:12 +0700 Subject: [PATCH] set 40ch/line for str, allow overflow to next line --- src/components/port/CustomPortLabel.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/port/CustomPortLabel.tsx b/src/components/port/CustomPortLabel.tsx index 208293ed..f4d95ca3 100644 --- a/src/components/port/CustomPortLabel.tsx +++ b/src/components/port/CustomPortLabel.tsx @@ -19,9 +19,9 @@ namespace S { export const Label = styled.div` padding: 0 5px; flex-grow: 1; - text-overflow: ellipsis; + white-space: pre-wrap; // Preserve line breaks and wrap text to the next line overflow:hidden; - max-width: 640px; + max-width: 40ch; `; export const SymbolContainer = styled.div<{ symbolType: string; selected: boolean; isOutPort: boolean }>`