Make registration form responsive.
This commit is contained in:
@@ -35,10 +35,23 @@ form#registration {
|
||||
label,
|
||||
span {
|
||||
font-size: 1.3rem;
|
||||
height: unset;
|
||||
}
|
||||
|
||||
.ant-form-item {
|
||||
width: 100%;
|
||||
.ant-form-item-label {
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.ant-select-arrow svg {
|
||||
padding-bottom: 7px;
|
||||
}
|
||||
|
||||
.anticon-close svg {
|
||||
padding-top: 3px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { Button, Form, Input, Select } from 'antd';
|
||||
import { CloseCircleOutlined } from '@ant-design/icons';
|
||||
import { useParams } from 'react-router';
|
||||
|
||||
import './RegForm.scss';
|
||||
@@ -18,7 +19,7 @@ interface FormValues {
|
||||
visitors: Visitor[];
|
||||
}
|
||||
|
||||
const preferences = ['vegan', 'vegetarian', 'murder'].map((preference) => {
|
||||
const preferences = ['vegan', 'vegetarian', 'everything'].map((preference) => {
|
||||
return (
|
||||
<Option key={preference} value={preference}>
|
||||
<FormattedMessage id={'registration.form.preferences.' + preference} />
|
||||
@@ -71,7 +72,6 @@ export const RegForm = () => {
|
||||
name='registration'
|
||||
onFinish={onFinish}
|
||||
autoComplete='off'
|
||||
layout='vertical'
|
||||
>
|
||||
<Form.List name='visitors'>
|
||||
{(fields, { add, remove }) => (
|
||||
@@ -123,13 +123,7 @@ export const RegForm = () => {
|
||||
})}
|
||||
fieldKey={[field.fieldKey, 'preferences']}
|
||||
>
|
||||
<Select
|
||||
placeholder={intl.formatMessage({
|
||||
id: 'registration.form.preferences.placeholder',
|
||||
})}
|
||||
>
|
||||
{preferences}
|
||||
</Select>
|
||||
<Select defaultValue='everything'>{preferences}</Select>
|
||||
</Form.Item>
|
||||
<Form.Item
|
||||
name={[field.name, 'welcomeDrinks']}
|
||||
|
||||
Reference in New Issue
Block a user