From 2de2c70f75687ad7ec76e374ed1ff66381718dbb Mon Sep 17 00:00:00 2001 From: Wylie Conlon Date: Tue, 6 Oct 2020 11:50:44 -0400 Subject: [PATCH] [Lens] Break long titles into multiple lines (#79580) --- .../editor_frame/config_panel/layer_panel.scss | 1 + .../dimension_panel/dimension_panel.tsx | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/layer_panel.scss b/x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/layer_panel.scss index c77db2e65ce2d..54c922957d29b 100644 --- a/x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/layer_panel.scss +++ b/x-pack/plugins/lens/public/editor_frame_service/editor_frame/config_panel/layer_panel.scss @@ -50,6 +50,7 @@ width: 100%; padding: $euiSizeS; min-height: $euiSizeXXL - 2; + word-break: break-word; &:focus { background-color: transparent !important; // sass-lint:disable-line no-important diff --git a/x-pack/plugins/lens/public/indexpattern_datasource/dimension_panel/dimension_panel.tsx b/x-pack/plugins/lens/public/indexpattern_datasource/dimension_panel/dimension_panel.tsx index 12b8d91c35ade..ff6840bc16a59 100644 --- a/x-pack/plugins/lens/public/indexpattern_datasource/dimension_panel/dimension_panel.tsx +++ b/x-pack/plugins/lens/public/indexpattern_datasource/dimension_panel/dimension_panel.tsx @@ -229,6 +229,13 @@ export function onDrop(props: DatasourceDimensionDropHandlerProps - {uniqueLabel} + {formattedLabel} ); };