make proxy fields larger

This commit is contained in:
Spectralitree 2021-10-03 15:52:44 +02:00
parent 206236f5b9
commit 4968635298

View File

@ -407,7 +407,7 @@ export default function MemberCard(props) {
<BS.Form onSubmit={handleSubmitProxy(submitProxy)}> <BS.Form onSubmit={handleSubmitProxy(submitProxy)}>
<BS.Form.Row> <BS.Form.Row>
{ proxyTags.map((item, index) => ( { proxyTags.map((item, index) => (
<BS.Col key={index} className="mb-lg-2" xs={12} lg={3}> <BS.Col key={index} className="mb-lg-2" xs={12} lg={4}>
<BS.Form.Row> <BS.Form.Row>
<BS.InputGroup className="ml-1 mr-1 mb-1"> <BS.InputGroup className="ml-1 mr-1 mb-1">
<BS.Form.Control as="textarea" rows="1" name={`proxy_tags[${index}].prefix`} defaultValue={item.prefix} {...registerProxy(`proxy_tags[${index}].prefix`)}/> <BS.Form.Control as="textarea" rows="1" name={`proxy_tags[${index}].prefix`} defaultValue={item.prefix} {...registerProxy(`proxy_tags[${index}].prefix`)}/>
@ -416,7 +416,7 @@ export default function MemberCard(props) {
</BS.InputGroup> </BS.InputGroup>
</BS.Form.Row> </BS.Form.Row>
</BS.Col> </BS.Col>
))} <BS.Col className="mb-2" xs={12} lg={3}><BS.Button block variant="light" onClick={() => addProxyField()}>Add new</BS.Button></BS.Col> ))} <BS.Col className="mb-2" xs={12} lg={4}><BS.Button block variant="light" onClick={() => addProxyField()}>Add new</BS.Button></BS.Col>
</BS.Form.Row> </BS.Form.Row>
<BS.Button variant="light" onClick={() => resetProxyFields()}>Exit</BS.Button> <BS.Button variant="primary" type="submit">Submit</BS.Button> <BS.Button variant="light" onClick={() => resetProxyFields()}>Exit</BS.Button> <BS.Button variant="primary" type="submit">Submit</BS.Button>
</BS.Form><hr/></> : proxyView ? </BS.Form><hr/></> : proxyView ?