Skip to content

Commit 561c0f9

Browse files
Wylie Conloncchaos
andauthored
[Lens] Allow table to scroll horizontally (#63805)
* [Lens] Allow table to scroll horizontally * Fixing scrolling pt. 2 Co-authored-by: cchaos <caroline.horn@elastic.co>
1 parent bb49c96 commit 561c0f9

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

x-pack/legacy/plugins/canvas/canvas_plugin_src/renderers/embeddable/embeddable.scss

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,4 @@
2626
.euiTable {
2727
background: none;
2828
}
29-
30-
.lnsExpressionRenderer {
31-
@include euiScrollBar;
32-
}
33-
}
29+
}

x-pack/plugins/lens/public/datatable_visualization/expression.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ function DatatableComponent(props: DatatableProps & { formatFactory: FormatFacto
140140
<EuiBasicTable
141141
className="lnsDataTable"
142142
data-test-subj="lnsDataTable"
143+
tableLayout="auto"
143144
columns={props.args.columns.columnIds
144145
.map(field => {
145146
const col = firstTable.columns.find(c => c.id === field);

x-pack/plugins/lens/public/editor_frame_service/editor_frame/_expression_renderer.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
.lnsExpressionRenderer {
2+
@include euiScrollBar;
23
position: relative;
34
width: 100%;
45
height: 100%;
56
display: flex;
6-
overflow-x: hidden;
7+
overflow: auto;
78

89
.lnsExpressionRenderer__component {
910
position: static; // Let the progress indicator position itself against the outer parent

x-pack/plugins/lens/public/editor_frame_service/editor_frame/_workspace_panel_wrapper.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
display: flex;
3030
align-items: center;
3131
justify-content: center;
32-
overflow-x: hidden;
32+
overflow: hidden;
3333
}
3434
}
3535
}

0 commit comments

Comments
 (0)