From eec36fd7af0ef73872883345fd2cd054c2324c01 Mon Sep 17 00:00:00 2001 From: Sebastian Helzle Date: Wed, 8 Nov 2023 14:30:40 +0100 Subject: [PATCH] BUGFIX: Make long nodetype names readable in the node infoview --- packages/neos-ui-views/src/NodeInfoView/index.js | 4 +++- packages/neos-ui-views/src/NodeInfoView/style.module.css | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/neos-ui-views/src/NodeInfoView/index.js b/packages/neos-ui-views/src/NodeInfoView/index.js index b2cb208efb..98a17d5dd6 100644 --- a/packages/neos-ui-views/src/NodeInfoView/index.js +++ b/packages/neos-ui-views/src/NodeInfoView/index.js @@ -36,6 +36,8 @@ export default class NodeInfoView extends PureComponent { }; const nodeType = $get('nodeType', node); + // Insert soft hyphens after dots and colon to make the node type more readable + const hyphenatedNodeTypeName = nodeType.replace(/([.:])/g, '$1\u00AD'); return ( ); diff --git a/packages/neos-ui-views/src/NodeInfoView/style.module.css b/packages/neos-ui-views/src/NodeInfoView/style.module.css index b7181df20f..a331e47e88 100644 --- a/packages/neos-ui-views/src/NodeInfoView/style.module.css +++ b/packages/neos-ui-views/src/NodeInfoView/style.module.css @@ -30,4 +30,6 @@ .nodeInfoView__content { font-size: 13px; color: var(--colors-ContrastBright); + hyphenate-character: ''; + word-wrap: break-word; }