Skip to content

Commit a1dd310

Browse files
authored
fix: adjust notebooks margins and header size when multi-Org is enabled (#5654)
1 parent 487ab2e commit a1dd310

File tree

1 file changed

+31
-4
lines changed

1 file changed

+31
-4
lines changed

src/MultiOrgOverrideStyles.scss

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,57 @@
11
@use 'src/identity/components/GlobalHeader/GlobalHeaderStyle.scss' as gh;
22
@import '@influxdata/clockface/dist/variables.scss';
33

4-
// Reduce size of page headers
4+
// These are custom per-page adjustments to certain styles that are currently
5+
// necessary to accomodate the space taken up by the multi-org header in Cloud2.
6+
7+
/* Page Headers Generally */
58
.multi-org .cf-page-header {
69
height: 46px !important;
710
flex: 0 0 46px !important;
811
margin-bottom: 14px !important;
912
}
1013

11-
// Adjust most pages for multi-org by changing the size of the Dapper Scroll Bar wrapper.
14+
/* Page Size Generally */
15+
// Adjusts Dapper Scrollbars height.
1216
.multi-org .cf-page-contents > .ScrollbarsCustom-Wrapper {
1317
height: calc(100% - gh.$globalheader-height);
1418
}
1519

16-
// Page-specific fix for Data Explorer - Classic
20+
// Data Explorer - Classic
1721
.multi-org .data-explorer > .time-machine > .cf-draggable-resizer {
1822
height: calc(100% - gh.$globalheader-height);
1923
}
2024

21-
// Page-specific fix for Data Explorer - New
25+
// Data Explorer - New
2226
.multi-org .flux-query-builder--container {
2327
height: calc(100% - gh.$globalheader-height);
2428
}
2529

30+
/* Notebooks */
31+
// Browser
32+
.multi-org .cf-page.flows-index {
33+
height: calc(100% - gh.$globalheader-height);
34+
}
35+
36+
// Page Title
37+
.multi-org
38+
.flows-index
39+
> .cf-page-header
40+
> .cf-page-header--fixed
41+
> .cf-flex-box {
42+
height: 32px !important;
43+
margin-bottom: 10px !important;
44+
}
45+
46+
// Header Block
47+
.multi-org .cf-page-header.withButtonHeader {
48+
height: 140px !important;
49+
}
50+
51+
/* Notifications */
2652
// When removing multi-org flags, consider whether this override
2753
// should become a permanent change for all users in Clockface.
54+
2855
.cf-notification-container {
2956
&.cf-notification__top {
3057
top: $cf-space-2xs;

0 commit comments

Comments
 (0)