Skip to content

Commit b928135

Browse files
fix #11855 Dataset empty have a lots of column, is not possible to scroll horizontally to see all the column (#11863)
(cherry picked from commit f817dd1) Co-authored-by: Sovas Tiwari <40485930+subashtiwari1010@users.noreply.github.com>
1 parent dfb3bb9 commit b928135

1 file changed

Lines changed: 35 additions & 12 deletions

File tree

web/client/themes/default/less/react-data-grid.less

Lines changed: 35 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -302,19 +302,42 @@
302302
}
303303
}
304304

305+
305306
.feature-grid-container{
306-
.ms2-border-layout-body{
307-
.react-grid-HeaderRow{
308-
.react-grid-HeaderCell{
309-
.rw-datetimepicker.rw-widget input {
310-
.input-size(@input-height-small; @padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @input-border-radius-small);
311-
}
312-
.rw-datetimepicker.rw-widget input:disabled{
313-
height:100%;
314-
}
315-
}
316-
}
317-
}
307+
.ms2-border-layout-body{
308+
&:has(.react-grid-Empty) {
309+
.ms2-border-layout-content {
310+
overflow-x: auto !important;
311+
}
312+
.react-grid-HeaderRow {
313+
min-width: max-content;
314+
}
315+
.react-grid-Viewport {
316+
min-width: max-content;
317+
}
318+
// Make the grid scrollable horizontally when there are many columns
319+
.react-grid-Grid {
320+
min-width: max-content;
321+
overflow-x: auto !important;
322+
}
323+
}
324+
.react-grid-HeaderRow{
325+
.react-grid-HeaderCell{
326+
.rw-datetimepicker.rw-widget input {
327+
.input-size(@input-height-small; @padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @input-border-radius-small);
328+
}
329+
.rw-datetimepicker.rw-widget input:disabled{
330+
height:100%;
331+
}
332+
}
333+
}
334+
335+
// Ensure the empty state respects the grid width for scrolling
336+
.react-grid-Empty {
337+
min-width: inherit;
338+
width: 100%;
339+
}
340+
}
318341
}
319342
#page-rulesmanager{
320343
.ms2-border-layout-body{

0 commit comments

Comments
 (0)