layout: minor fixes

This commit is contained in:
Chika 2022-07-08 13:26:33 +03:00
parent 4d00d5b1d3
commit adfe323eae
3 changed files with 9 additions and 7 deletions

View File

@ -15,9 +15,12 @@ const formTabs = [Leasing, Payments, LeasingObject, SupplierAgent, Insurance, Ad
const Wrapper = styled(Background)`
padding: 4px 6px;
${min('tablet')} {
min-height: 790px;
}
${min('laptop')} {
padding: 4px 6px 10px;
min-height: 770px;
}
`;

View File

@ -7,8 +7,11 @@ import { rows } from './config';
const Wrapper = styled(Background)`
padding: 4px 10px;
${min('tablet')} {
min-height: 790px;
}
${min('laptop')} {
min-height: 770px;
padding: 4px 18px 10px;
}
`;

View File

@ -20,11 +20,7 @@ const ElementTitle = styled.h5`
export function Head({ title, addon }: { title: string; addon?: ReactNode }) {
return (
<Flex
flexDirection={['column', 'row']}
justifyContent={['', 'space-between']}
alignItems={['', 'center']}
>
<Flex flexDirection={['row']} justifyContent={['space-between']} alignItems={['center']}>
<ElementTitle>{title}</ElementTitle>
{addon}
</Flex>