Skip to content

Commit 3a86ba1

Browse files
authored
Merge pull request #223 from zenml-io/dev
Dev
2 parents 451c89b + d052891 commit 3a86ba1

File tree

5 files changed

+35
-17
lines changed

5 files changed

+35
-17
lines changed

src/ui/components/Filters/filter.module.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
padding-left: 1.6rem;
1313
padding-right: 1.6rem;
1414
outline: 0;
15-
margin-top: 23px;
15+
margin-top: 27px;
1616
line-height: 37px;
1717
}
1818

@@ -39,7 +39,7 @@
3939

4040

4141
.removeIcon {
42-
margin-top: 23px !important;
42+
margin-top: 27px !important;
4343
padding-top: 4px !important;
4444
width: 34px;
4545
height: 40px;
@@ -54,7 +54,7 @@
5454
width: 146;
5555
height: 40px;
5656
font-size: 12px;
57-
margin-top: 23px !important;
57+
margin-top: 27px !important;
5858
}
5959

6060
.inputRow {

src/ui/components/Filters/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ const FilterComponent = ({
775775
return (
776776
<FlexBox.Column fullWidth>
777777
<div className={styles.inputRow}>
778-
<Box marginRight="md" marginTop="md">
778+
<Box marginRight="md" marginTop="md" style={{ marginTop: '70px' }}>
779779
<SearchInputField
780780
placeholder={'Search'}
781781
value={searchText ? filters[0]?.filterValue : ''}

src/ui/components/forms/index.tsx

Lines changed: 23 additions & 6 deletions
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 >
183+
<FlexBox.Column fullWidth>
184184
<FlexBox alignItems="center" fullWidth style={{ position: 'relative' }}>
185185
<InputWithLabel
186186
name={props.name}
@@ -208,6 +208,7 @@ export const EditField = (
208208

209209
export const SearchInputField = (
210210
props: {
211+
fromRegisterComponent: boolean;
211212
label?: string;
212213
labelColor?: any;
213214
placeholder: any;
@@ -216,16 +217,32 @@ export const SearchInputField = (
216217
} & any,
217218
): JSX.Element => {
218219
return (
219-
<FlexBox.Column fullWidth style={{ height: '100px', marginTop: '-10px' }}>
220+
<FlexBox.Column
221+
fullWidth
222+
style={{
223+
height: props.fromRegisterComponent ? '50px' : '100px',
224+
marginTop: '-10px',
225+
}}
226+
>
220227
<FlexBox alignItems="center" fullWidth style={{ position: 'relative' }}>
221228
<LinkBox
222229
style={{ position: 'absolute', left: '7px', top: '35px' }}
223230
onClick={() => {}}
224231
>
225-
<icons.search color={iconColors.grey} />
232+
<icons.search
233+
style={{ position: 'relative', top: '-27px' }}
234+
color={iconColors.grey}
235+
/>
226236
</LinkBox>
227-
228-
<InputWithLabel
237+
<TextInput
238+
type="search"
239+
{...props}
240+
style={{ paddingLeft: '40px' }}
241+
value={props.value}
242+
onChangeText={props.onChange}
243+
placeholder={props.placeholder}
244+
/>
245+
{/* <InputWithLabel
229246
name={props.name}
230247
label={props.label}
231248
labelColor={props.labelColor}
@@ -239,7 +256,7 @@ export const SearchInputField = (
239256
placeholder={props.placeholder}
240257
/>
241258
}
242-
/>
259+
/> */}
243260
</FlexBox>
244261
</FlexBox.Column>
245262
);

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ export const Tabs: React.FC<{ pages: TabPage[]; basePath: string }> = ({
5050
<IfElse
5151
condition={isActive}
5252
renderWhenFalse={() => (
53-
<Truncate maxLines={1}>
54-
<Paragraph color="grey" style={{ padding: '5px 0' }} >{page.text}</Paragraph>
55-
</Truncate>
53+
<Truncate maxLines={1}>
54+
<Paragraph color="grey">{page.text}</Paragraph>
55+
</Truncate>
5656
)}
5757
renderWhenTrue={() => (
58-
<Truncate maxLines={1}>
59-
<Paragraph color="primary" style={{ padding: '5px 0' }}>{page.text}</Paragraph>
60-
</Truncate>
58+
<Truncate maxLines={1}>
59+
<Paragraph color="primary">{page.text}</Paragraph>
60+
</Truncate>
6161
)}
6262
/>
6363
</Link>

src/ui/layouts/stackComponents/RegisterComponents/ListForAll/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,9 @@ export const ListForAll: React.FC<Props> = ({ type }: Props) => {
8181
return (
8282
<>
8383
<FlexBox.Column fullWidth>
84-
<div style={{ marginBottom: '-10px' }}>
84+
<div style={{ marginTop: '17px' }}>
8585
<SearchInputField
86+
fromRegisterComponent={true}
8687
placeholder={'Search'}
8788
value={text}
8889
// disabled={applyFilter || showInBar}

0 commit comments

Comments
 (0)