Skip to content

Commit 3f00d35

Browse files
authored
fix(dataLoaders): add styling to telegraf conf overlay (#5701)
1 parent 93002cd commit 3f00d35

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

src/dataLoaders/components/DataLoadersOverlay.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@
4343
padding: $ix-marg-d;
4444
}
4545

46+
.configuration-overlay--body {
47+
padding: 45px !important;
48+
padding-top: 0 !important;
49+
padding-bottom: 0 !important;
50+
}
51+
4652
/*
4753
Telegraf Instructions Overlay
4854
------------------------------------------------------------------------------

src/dataLoaders/components/collectorsWizard/TelegrafUIRefreshWizard.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ import {isSystemBucket} from 'src/buckets/constants'
4545

4646
// Constants
4747
import {getBucketOverlayWidth} from 'src/buckets/constants'
48+
4849
const TELEGRAF_UI_REFRESH_OVERLAY_DEFAULT_WIDTH = 1200
4950

5051
interface OwnProps {
@@ -79,7 +80,7 @@ class TelegrafUIRefreshWizard extends PureComponent<Props> {
7980
(currentStepIndex === 0 && substepIndex === 1) ||
8081
currentStepIndex === 1
8182
) {
82-
overlayBodyClassName = ''
83+
overlayBodyClassName = 'configuration-overlay--body'
8384
}
8485

8586
return (

src/writeData/components/PluginAddToExistingConfiguration/Wizard.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,12 @@ const Wizard: FC<Props> = props => {
115115

116116
let overlayBodyClassName = 'data-loading--overlay'
117117

118-
if (currentStepIndex === 0 || currentStepIndex === 1) {
118+
if (currentStepIndex === 0) {
119119
overlayBodyClassName = ''
120120
}
121+
if (currentStepIndex === 1) {
122+
overlayBodyClassName = 'configuration-overlay--body'
123+
}
121124

122125
return (
123126
<Overlay visible={isVisible}>

src/writeData/components/PluginCreateConfiguration/Wizard.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ const Wizard: FC<Props> = props => {
111111
}
112112

113113
let title = 'Configuration Options'
114+
114115
if (currentStepIndex === 0 && substepIndex === 1) {
115116
title = 'Create Bucket'
116117
} else if (currentStepIndex !== 0) {
@@ -128,9 +129,12 @@ const Wizard: FC<Props> = props => {
128129

129130
let overlayBodyClassName = 'data-loading--overlay'
130131

131-
if (currentStepIndex === 0 || currentStepIndex === 1) {
132+
if (currentStepIndex === 0 || substepIndex === 1) {
132133
overlayBodyClassName = ''
133134
}
135+
if (currentStepIndex === 1) {
136+
overlayBodyClassName = 'configuration-overlay--body'
137+
}
134138

135139
return (
136140
<Overlay visible={isVisible}>

0 commit comments

Comments
 (0)