more ui fixes

This commit is contained in:
Владислав Чикалкин 2020-09-03 15:21:14 +03:00
parent 7293b4bfc5
commit 6eea59337d
2 changed files with 9 additions and 5 deletions

View File

@ -13,8 +13,8 @@ const { TabPane } = Tabs;
const InputWrapper = styled(Box)`
width: 100%;
${mq.desktop`
flex: 2 0 23%;
width:${(props) => props.width};
flex: ${(props) => (props.size === 'min' ? '1 0' : '2 0 23%')};
width:${(props) => props.size === 'max' && '100%'};
`}
margin: 8px 8px;
`;
@ -39,6 +39,7 @@ const Sections = () => (
key={ie}
newLine={layout && layout.newLine}
width={layout && layout.width}
size={layout && layout.size}
>
{withTitle(title)(Component)(props)}
</InputWrapper>

View File

@ -175,7 +175,7 @@ export default [
valueName: 'broker',
},
},
/** */
{
divider: { empty: true },
@ -198,7 +198,7 @@ export default [
valueName: 'doubleAgentgent',
},
},
/** */
{
divider: { empty: true },
@ -213,7 +213,7 @@ export default [
valueName: 'commentLead',
},
layout: {
width: '100%',
size: 'max',
},
},
@ -230,6 +230,9 @@ export default [
name: 'cbxRecalcWthtRevision',
valueName: 'recalcWthtRevision',
},
layout: {
size: 'min',
},
},
{
Component: Button,