From 6eea59337d93bc76520b316863fa9b810e75437e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=BB=D0=B0=D0=B4=D0=B8=D1=81=D0=BB=D0=B0=D0=B2=20?= =?UTF-8?q?=D0=A7=D0=B8=D0=BA=D0=B0=D0=BB=D0=BA=D0=B8=D0=BD?= Date: Thu, 3 Sep 2020 15:21:14 +0300 Subject: [PATCH] more ui fixes --- src/client/Containers/Calculation/Sections/index.jsx | 5 +++-- src/client/Containers/Calculation/Sections/list.js | 9 ++++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/client/Containers/Calculation/Sections/index.jsx b/src/client/Containers/Calculation/Sections/index.jsx index ed4cf76..a9b9dd2 100644 --- a/src/client/Containers/Calculation/Sections/index.jsx +++ b/src/client/Containers/Calculation/Sections/index.jsx @@ -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)} diff --git a/src/client/Containers/Calculation/Sections/list.js b/src/client/Containers/Calculation/Sections/list.js index c3cf6e2..f1d8c9d 100644 --- a/src/client/Containers/Calculation/Sections/list.js +++ b/src/client/Containers/Calculation/Sections/list.js @@ -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,