Skip to content

Commit 0aa4996

Browse files
fix: page content now visible on mobile devices (#5651)
* fix: page content now visible on mobile devices * chore: linter * fix: global header popover * fix: remove custom style adjustments for dapperscrollbar, dataexplorer, tasks * fix: remove custom style adjustments for dapperscrollbar, dataexplorer, tasks Co-authored-by: wdoconnell <91283923+wdoconnell@users.noreply.github.com>
1 parent f6c64c4 commit 0aa4996

File tree

4 files changed

+15
-25
lines changed

4 files changed

+15
-25
lines changed

src/App.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ import {executeVWO} from 'src/utils/vwo'
4444

4545
// Styles
4646
import './MultiOrgOverrideStyles.scss'
47-
const fullScreen = {height: '100%', width: '100%'}
47+
import {Page} from '@influxdata/clockface'
4848

4949
const App: FC = () => {
5050
const {theme, presentationMode} = useContext(AppSettingContext)
@@ -121,15 +121,15 @@ const App: FC = () => {
121121
<EngagementLink />
122122
<TreeNav />
123123
<Suspense fallback={<PageSpinner />}>
124-
<div style={fullScreen}>
124+
<Page>
125125
{CLOUD && isFlagEnabled('multiOrg') && shouldUseQuartzIdentity() && (
126126
<GlobalHeaderContainer />
127127
)}
128128
<Switch>
129129
<Route path="/orgs/new" component={CreateOrgOverlay} />
130130
<Route path="/orgs/:orgID" component={SetOrg} />
131131
</Switch>
132-
</div>
132+
</Page>
133133
</Suspense>
134134
</AppWrapper>
135135
)

src/MultiOrgOverrideStyles.scss

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,6 @@
1212
margin-bottom: 14px !important;
1313
}
1414

15-
/* Page Size Generally */
16-
// Adjusts Dapper Scrollbars height.
17-
.multi-org .cf-page-contents > .ScrollbarsCustom-Wrapper {
18-
height: calc(100% - gh.$globalheader-height);
19-
}
20-
21-
// Data Explorer - Classic
22-
.multi-org .data-explorer > .time-machine > .cf-draggable-resizer {
23-
height: calc(100% - gh.$globalheader-height);
24-
}
25-
26-
// Data Explorer - New
27-
.multi-org .flux-query-builder--container {
28-
height: calc(100% - gh.$globalheader-height);
29-
}
30-
3115
/* Notebooks */
3216
// Browser
3317
.multi-org .cf-page.flows-index {
@@ -61,9 +45,3 @@
6145
right: $cf-space-2xs;
6246
}
6347
}
64-
65-
/* Tasks */
66-
// TaskForm.scss deducts #{$ix-marg-d} from page height, so the multi-org style must do so too.
67-
.multi-org .task-form {
68-
height: calc(100% - #{gh.$globalheader-height} - #{$ix-marg-d}) !important;
69-
}

src/identity/components/GlobalHeader/UserPopoverStyles.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,9 @@
7474
margin-top: 10px;
7575
}
7676
}
77+
78+
@media (max-width: 800px) {
79+
.user-popover {
80+
top: 123px;
81+
}
82+
}

src/shared/components/cloud/CloudOnly.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,12 @@ button.upgrade-payg--button {
9999
margin: $cf-marg-c;
100100
}
101101

102+
@media (max-width: 668px) {
103+
.credit-250-experiment-upgrade-button--text {
104+
display: none;
105+
}
106+
}
107+
102108
@media screen and (min-width: $cf-nav-menu--breakpoint) {
103109
.rate-alert {
104110
margin-left: $cf-space-l;

0 commit comments

Comments
 (0)