Skip to content

Commit d1f5e6c

Browse files
committed
style changes to nested dashboards, expects pr for web-client-ui related to lm_dragging on lm_root
1 parent 1ffe451 commit d1f5e6c

File tree

1 file changed

+16
-46
lines changed

1 file changed

+16
-46
lines changed

plugins/ui/src/js/src/styles.scss

Lines changed: 16 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -59,22 +59,35 @@
5959
position: absolute;
6060
}
6161
}
62+
63+
.dashboard-container {
64+
border: 1px solid var(--dh-color-bg);
65+
}
6266
}
6367

64-
&:has(.dh-inner-react-panel > .iris-grid:only-child),
68+
&:has(> .dh-inner-react-panel > .iris-grid:only-child),
6569
&:has(
66-
.dh-inner-react-panel
70+
> .dh-inner-react-panel
6771
> .ui-table-container:only-child
6872
> .iris-grid:only-child
6973
),
70-
&:has(.dh-inner-react-panel > .chart-wrapper:only-child) {
74+
&:has(> .dh-inner-react-panel > .chart-wrapper:only-child) {
7175
// remove the default panel padding when grid or chart is the only child
7276
padding: 0 !important; // important required to override inline spectrum style
7377
.iris-grid {
7478
border: none;
7579
border-radius: 0;
7680
}
7781
}
82+
83+
// remove padding and border around single child dashboards in react panels
84+
&:has(> .dh-inner-react-panel > .dashboard-container:only-child) {
85+
padding: 0 !important; // important required to override inline spectrum style
86+
87+
> .dh-inner-react-panel > .dashboard-container {
88+
border: none;
89+
}
90+
}
7891
}
7992

8093
.ui-text-wrap-balance {
@@ -102,46 +115,3 @@
102115
.ui-markdown {
103116
padding: 0;
104117
}
105-
106-
$lm-header-nested-height: 18px;
107-
$lm-header-double-nested-height: 14px;
108-
$lm-header-nested-font-size: 11px;
109-
$lm-header-double-nested-font-size: 10px;
110-
$lm-header-nested-color: var(--dh-color-gray-600);
111-
$lm-header-double-nested-color: var(--dh-color-gray-500);
112-
$lm-header-nested-bg: var(--dh-color-gray-50);
113-
$lm-header-double-nested-bg: var(--dh-color-true-black);
114-
115-
.dashboard-container {
116-
.dashboard-container {
117-
// border: 5px solid red;
118-
.lm_tab {
119-
height: $lm-header-nested-height;
120-
font-size: $lm-header-nested-font-size;
121-
// color: $lm-header-nested-color;
122-
}
123-
.lm_tabs {
124-
background: $lm-header-nested-bg;
125-
}
126-
.lm_header {
127-
height: $lm-header-nested-height;
128-
}
129-
.lm_close_tab {
130-
display: none; // hide close icon for nested tabs
131-
}
132-
.dashboard-container {
133-
// border: 5px solid blue;
134-
.lm_tab {
135-
height: $lm-header-double-nested-height;
136-
font-size: $lm-header-double-nested-font-size;
137-
// color: $lm-header-double-nested-color;
138-
}
139-
.lm_tabs {
140-
background: $lm-header-double-nested-bg;
141-
}
142-
.lm_header {
143-
height: $lm-header-double-nested-height;
144-
}
145-
}
146-
}
147-
}

0 commit comments

Comments
 (0)