File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
packages/compass-data-modeling/src/components Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,19 @@ const bannerButtonStyles = css({
8989 marginLeft : 'auto' ,
9090} ) ;
9191
92+ /**
93+ * This is a hotfix for COMPASS-9738 where collection names spanning over
94+ * multiple lines are not accounted for properly in the diagramming package.
95+ * TODO(COMPASS-9738): Remove this hotfix once we have a proper solution in place.
96+ */
97+ const diagramStyles = css ( {
98+ '[data-nodeid] + div > div > div:first-child > div:nth-child(2)' : {
99+ overflow : 'hidden' ,
100+ textOverflow : 'ellipsis' ,
101+ whiteSpace : 'nowrap' ,
102+ } ,
103+ } ) ;
104+
92105const ErrorBannerWithRetry : React . FunctionComponent < {
93106 onRetryClick : ( ) => void ;
94107} > = ( { children, onRetryClick } ) => {
@@ -442,6 +455,7 @@ const DiagramContent: React.FunctionComponent<{
442455 // dragging.
443456 nodeDragThreshold = { 5 }
444457 fitViewOptions = { ZOOM_OPTIONS }
458+ className = { diagramStyles }
445459 />
446460 </ div >
447461 </ div >
You can’t perform that action at this time.
0 commit comments