Skip to content

Commit

Permalink
Fixed layout issues in demo Form
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekseyManetov committed Mar 20, 2024
1 parent 70f6533 commit 9085efd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 32 deletions.
5 changes: 0 additions & 5 deletions app/src/demo/form/DemoForm.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@
margin-top: 18px;
}

.clear-button-wrapper {
margin-top: 6px;
margin-left: -3px;
}

.attachment-container {
display: grid;
margin-top: 12px;
Expand Down
34 changes: 7 additions & 27 deletions app/src/demo/form/DemoForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,11 @@ import {
} from '@epam/uui-core';
import { demoData, Country } from '@epam/uui-docs';
import type { TApi } from '../../data';
import {
FlexCell,
FlexRow,
FlexSpacer,
LabeledInput,
Panel,
PickerInput,
RichTextView,
SuccessNotification,
ErrorNotification,
Text,
TextInput,
DatePicker,
Tooltip,
IconContainer,
Switch,
Button,
IconButton,
NumericInput,
RangeDatePicker,
MultiSwitch,
DropSpot,
FileCard,
useForm,
import { FlexCell, FlexRow, FlexSpacer, LabeledInput, Panel, PickerInput, RichTextView, SuccessNotification,
ErrorNotification, Text, TextInput, DatePicker, Tooltip, IconContainer, Switch, Button, NumericInput,
RangeDatePicker, MultiSwitch, DropSpot, FileCard, useForm, IconButton,
} from '@epam/uui';
import { } from '@epam/loveship';
import type {
PersonDetails, Attachment, PersonLanguageInfo, PersonTravelVisa,
} from './types';
Expand Down Expand Up @@ -185,7 +165,7 @@ function PrimaryInfo({ lens }: { lens: ILens<PersonDetails['primaryInfo']> }) {
</FlexCell>
</FlexRow>
</FlexCell>
<FlexCell minWidth={ 324 }>
<FlexCell minWidth={ 324 } alignSelf="flex-end">
<FlexRow size="48" columnGap="18" alignItems="bottom">
<Switch label="Time Reporting" { ...lens.prop('timeReporting').toProps() } isDisabled />
<Switch label="Remote" { ...lens.prop('remoteStatus').toProps() } isDisabled />
Expand Down Expand Up @@ -426,9 +406,9 @@ function Visas({ lens, countriesDS }: { lens: ILens<PersonDetails['travelVisas']
<RangeDatePicker id="term" format="MMM D, YYYY" { ...visasLens.index(index).prop('term').toProps() } />
</LabeledInput>
</FlexCell>
<FlexRow size="48" alignItems="bottom" cx={ css.clearButtonWrapper }>
<FlexCell alignSelf="flex-end">
{isClearable && <IconButton icon={ ClearIcon } onClick={ () => removeLensItemHandler<PersonTravelVisa>(visasLens, index) } />}
</FlexRow>
</FlexCell>
</FlexRow>
);
})}
Expand Down

0 comments on commit 9085efd

Please sign in to comment.