Skip to content

Commit ac6b45b

Browse files
Merge branch 'dev' into QA-Fixes
2 parents 29bcbc2 + 3b7d1bd commit ac6b45b

File tree

14 files changed

+107
-118
lines changed

14 files changed

+107
-118
lines changed

src/ui/components/forms/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ export const EditField = (
180180
} & any,
181181
): JSX.Element => {
182182
return (
183-
<FlexBox.Column fullWidth style={{ height: '100px' }}>
183+
<FlexBox.Column fullWidth >
184184
<FlexBox alignItems="center" fullWidth style={{ position: 'relative' }}>
185185
<InputWithLabel
186186
name={props.name}
Lines changed: 9 additions & 5 deletions
Loading
Lines changed: 3 additions & 5 deletions
Loading

src/ui/layouts/NonEditableConfig/index.tsx

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const NonEditableConfig: React.FC<{ details: any }> = ({ details }) => {
2929
const getFormElement: any = (elementName: any, elementSchema: any) => {
3030
if (typeof elementSchema === 'string') {
3131
return (
32-
<Box marginVertical={'md'} style={{ width: '100%' }}>
32+
<Box marginTop='lg' style={{ width: '100%' }}>
3333
<EditField
3434
disabled
3535
onChangeText={() => console.log('')}
@@ -45,7 +45,7 @@ export const NonEditableConfig: React.FC<{ details: any }> = ({ details }) => {
4545
}
4646
if (typeof elementSchema === 'object') {
4747
return (
48-
<Box marginVertical={'xl'} style={{ width: '100%' }}>
48+
<Box marginTop='lg' style={{ width: '100%' }}>
4949
<Paragraph size="body" style={{ color: 'black' }}>
5050
<label htmlFor={elementName}>{titleCase(elementName)}</label>
5151
</Paragraph>
@@ -76,7 +76,7 @@ export const NonEditableConfig: React.FC<{ details: any }> = ({ details }) => {
7676
</FlexBox.Row>
7777
)}
7878
{Object.entries(elementSchema).map(([key, value]) => (
79-
<FlexBox.Row>
79+
<FlexBox.Row marginTop='lg'>
8080
<EditField
8181
disabled
8282
onChangeText={() => console.log('')}
@@ -106,7 +106,7 @@ export const NonEditableConfig: React.FC<{ details: any }> = ({ details }) => {
106106
}
107107
if (typeof elementSchema === 'boolean') {
108108
return (
109-
<Box marginVertical={'md'} style={{ width: '100%' }}>
109+
<Box marginTop='lg' style={{ width: '100%' }}>
110110
<ToggleField
111111
value={elementSchema}
112112
onHandleChange={() => {}}
@@ -145,7 +145,7 @@ export const NonEditableConfig: React.FC<{ details: any }> = ({ details }) => {
145145

146146
return (
147147
<FlexBox.Column marginTop="xl" fullWidth>
148-
<FlexBox.Row>
148+
<FlexBox.Row flexDirection='column'>
149149
<Container>
150150
<Box style={{ width: '80%' }}>
151151
<EditField
@@ -159,20 +159,15 @@ export const NonEditableConfig: React.FC<{ details: any }> = ({ details }) => {
159159
className={styles.field}
160160
/>
161161
</Box>
162-
{/* <FlexBox.Row justifyContent="space-between" style={{ width: '80%' }}>
163-
<Paragraph>Share Component with public</Paragraph>
164-
<label className={styles.switch}>
165-
<input type="checkbox" checked={details.is_shared} />
166-
<span className={`${styles.slider} ${styles.round}`}></span>
167-
</label>
168-
</FlexBox.Row> */}
169-
<ToggleField
170-
name='Share Component with public'
171-
value={details.is_shared}
172-
onHandleChange={() => {}}
173-
label='Share Component with public'
174-
disabled={true}
175-
/>
162+
<Box marginTop='lg'>
163+
<ToggleField
164+
name='Share Component with public'
165+
value={details.is_shared}
166+
onHandleChange={() => {}}
167+
label='Share Component with public'
168+
disabled={true}
169+
/>
170+
</Box>
176171
</Container>
177172
{/* <Container>
178173

src/ui/layouts/NonEditableRunConfig/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const NonEditableRunConfig: React.FC<{ runConfiguration: any }> = ({
1515
const getFormElement: any = (elementName: any, elementSchema: any) => {
1616
if (typeof elementSchema === 'string') {
1717
return (
18-
<Box marginVertical={'md'} style={{ width: '40%' }}>
18+
<Box marginTop={'lg'} style={{ width: '40%' }}>
1919
<EditField
2020
disabled
2121
// onKeyDown={(e: any) => onPressEnter(e, 'string', elementName)}
@@ -43,13 +43,13 @@ export const NonEditableRunConfig: React.FC<{ runConfiguration: any }> = ({
4343
);
4444
};
4545
return (
46-
<Box style={{ width: '40%' }}>
46+
<Box marginTop='lg' style={{ width: '40%' }}>
4747
<Paragraph size="body" style={{ color: 'black' }}>
4848
<label htmlFor={elementName}>{titleCase(elementName)}</label>
4949
</Paragraph>
5050
<Box
5151
padding={'md'}
52-
marginVertical={'md'}
52+
// marginVertical={'md'}
5353
className={styles.JSONPretty}
5454
>
5555
<icons.copy
@@ -70,7 +70,7 @@ export const NonEditableRunConfig: React.FC<{ runConfiguration: any }> = ({
7070

7171
if (typeof elementSchema === 'boolean' || elementSchema === null) {
7272
return (
73-
<Box marginVertical={'md'} style={{ width: '40%' }}>
73+
<Box marginTop={'lg'} style={{ width: '40%' }}>
7474
<Box>
7575
{/* {console.log(elementSchema, elementName, 'asdasdasda2222sdasd')}
7676
<FlexBox.Row justifyContent="space-between">

src/ui/layouts/common/FormElement/index.module.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@
4545
}
4646

4747
input:checked + .slider {
48-
background-color: $primaryColor;
48+
background-color: #CCCCCC;
4949
}
5050

5151
input:focus + .slider {
52-
box-shadow: 0 0 1px $primaryColor;
52+
box-shadow: 0 0 1px #CCCCCC;
5353
}
5454

5555
input:checked + .slider:before {

src/ui/layouts/common/FormElement/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ export function ToggleField(props: any) {
7373
onChange={onHandleChange}
7474
disabled={disabled}
7575
/>
76-
<span className={`${styles.sliderBlue} ${styles.round}`}></span>
76+
{disabled ? <span className={`${styles.slider} ${styles.round}`}></span> :
77+
<span className={`${styles.sliderBlue} ${styles.round}`}></span>}
78+
7779
</label>
7880
</FlexBox.Row>
7981
</FlexBox.Row>

src/ui/layouts/common/StackBox/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const StackBox: React.FC<{
5555

5656
<Box style={{ marginTop: '8px' }}>
5757
<Paragraph className={styles.stackName}>
58-
{titleCase(stackName?.slice(0, 17))}
58+
{titleCase(stackName?.slice(0, 18))}
5959
</Paragraph>
6060
</Box>
6161

src/ui/layouts/stackComponents/ConfigureComponent/SidePopup/index.module.scss

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
@import '../../../../globalStyles.scss';
22

33

4+
.popupContainer {
5+
// height: 100vh;
6+
// width: 100vw;
7+
// top: 0;
8+
// left: 0;
9+
z-index: 1;
10+
position: relative;
11+
}
12+
413
.sidePopup {
514
background: #ffffff;
615
border-radius: 4px;
@@ -9,7 +18,7 @@
918
bottom: 0;
1019
top: 13rem;
1120
height: 88rem;
12-
min-width: 700px;
21+
min-width: 45vw;
1322
overflow: auto;
1423
}
1524

@@ -20,14 +29,6 @@
2029
}
2130
}
2231

23-
.popupContainer {
24-
height: 100vh;
25-
width: 100vw;
26-
top: 0;
27-
left: 0;
28-
z-index: 1;
29-
}
30-
3132
.actionSection {
3233
width: 100%;
3334
background-color: #ffffff;

src/ui/layouts/stackComponents/ConfigureComponent/SidePopup/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const SidePopup: React.FC<{
1717
>
1818
<Box className={styles.sidePopup}>
1919
<OutsideClickHandler onOutsideClick={onClose}>
20-
<Box paddingLeft="md" paddingTop="sm">
20+
<Box paddingTop="sm">
2121
<iframe
2222
title="ZenML - Organization Embed"
2323
style={{ border: '0px', height: '100vh', width: '100%' }}

0 commit comments

Comments
 (0)