background and right side overflow on right side

This commit is contained in:
Hugo Lextrait 2023-04-17 17:38:41 +02:00
parent 7d5f367435
commit 5d471c08f5
5 changed files with 31 additions and 7 deletions

View File

@ -10,10 +10,11 @@
padding: 0 48px; padding: 0 48px;
position: sticky; position: sticky;
top: 0; top: 0;
z-index: 2; z-index: 4;
@media (max-width: $screen-m) { @media (max-width: $screen-m) {
transition: transform 500ms ease-out; transition: transform 500ms ease-out;
&[data-open="closed"] { &[data-open="closed"] {
transform: translateY(-85px); transform: translateY(-85px);
} }
@ -60,4 +61,4 @@
} }
} }
} }
} }

View File

@ -1,14 +1,34 @@
@import "@Themes/constants.scss"; @import "@Themes/constants.scss";
@keyframes growWidth {
0% {
width: 100%;
}
100% {
width: 200%;
}
}
.root { .root {
.content { .content {
display: flex; display: flex;
overflow: hidden; overflow: hidden;
height: calc(100vh - 83px); height: calc(100vh - 83px);
.overlay {
position: absolute;
width: 100%;
height: 100%;
background-color: var(--white);
opacity: 0.5;
z-index: 2;
transition: all 0.3s $custom-easing;
}
.left-side { .left-side {
background-color: $white; background-color: $white;
z-index: 1; z-index: 3;
display: flex; display: flex;
width: 389px; width: 389px;
min-width: 389px; min-width: 389px;
@ -51,9 +71,9 @@
} }
.right-side { .right-side {
width: 100%; min-width: calc(100vw - 83px);
padding: 64px 48px; padding: 64px 48px;
overflow-y: auto; overflow-y: auto;
} }
} }
} }

View File

@ -53,6 +53,7 @@ export default class DefaultNotaryDashboard extends React.Component<IProps, ISta
<div className={classes["root"]}> <div className={classes["root"]}>
<Header isUserConnected={true} /> <Header isUserConnected={true} />
<div className={classes["content"]}> <div className={classes["content"]}>
{this.state.isLeftSideOpen && <div className={classes["overlay"]} onClick={this.onCloseLeftSide} />}
<div className={classNames(classes["left-side"], this.state.isLeftSideOpen && classes["opened"])}> <div className={classNames(classes["left-side"], this.state.isLeftSideOpen && classes["opened"])}>
<FolderListContainer <FolderListContainer
folders={this.state.folders} folders={this.state.folders}

View File

@ -44,7 +44,7 @@ export default class ClientSection extends React.Component<IProps, IState> {
} }
private renderCustomerFolders() { private renderCustomerFolders() {
const output = this.props.folder.office_folder_has_customers?.map((folderHasCustomer, key) => { const output = this.props.folder.office_folder_has_customers?.map((folderHasCustomer) => {
if (!folderHasCustomer.customer) return null; if (!folderHasCustomer.customer) return null;
// TODO : Les documents ASKED fonctionne mais les autres documents ne doivcent etre seulement ceux qui correspondent au folder // TODO : Les documents ASKED fonctionne mais les autres documents ne doivcent etre seulement ceux qui correspondent au folder
return ( return (

View File

@ -31,4 +31,6 @@
--grey: #{$grey}; --grey: #{$grey};
--grey-medium: #{$grey-medium}; --grey-medium: #{$grey-medium};
--grey-soft: #{$grey-soft}; --grey-soft: #{$grey-soft};
}
--white: #{$white};
}