1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00

fixed sidebar z-indexes

This commit is contained in:
Fedor Katurov 2020-11-17 18:05:36 +07:00
parent e28fdd2c05
commit 2e65992a84
3 changed files with 20 additions and 23 deletions

View file

@ -7,18 +7,22 @@ interface IProps {
path: string; path: string;
} }
const ProfileSidebarMenu: FC<IProps> = ({ path }) => ( const ProfileSidebarMenu: FC<IProps> = ({ path }) => {
<div className={styles.wrap}> const cleaned = path.replace(/\/$/, '');
<Link className={styles.row} to={`${path}/settings`}>
<Icon icon="settings" />
<span>Настройки</span>
</Link>
<div className={styles.row}> return (
<Icon icon="messages" /> <div className={styles.wrap}>
<span>Сообщения</span> <Link className={styles.row} to={`${cleaned}/settings`}>
<Icon icon="settings" />
<span>Настройки</span>
</Link>
<div className={styles.row}>
<Icon icon="messages" />
<span>Сообщения</span>
</div>
</div> </div>
</div> );
); };
export { ProfileSidebarMenu }; export { ProfileSidebarMenu };

View file

@ -23,6 +23,7 @@ const SidebarWrapper: FC<IProps> = ({ children, onClose }) => {
return createPortal( return createPortal(
<div className={styles.wrapper} ref={ref}> <div className={styles.wrapper} ref={ref}>
<div className={styles.clicker} onClick={onClose} /> <div className={styles.clicker} onClick={onClose} />
{children} {children}
</div>, </div>,
document.body document.body

View file

@ -20,19 +20,11 @@
overflow: hidden; overflow: hidden;
animation: appear 0.25s forwards; animation: appear 0.25s forwards;
@include sidebar @include sidebar;
}
.content { & > * {
height: 100%; z-index: 4;
overflow: auto; }
display: flex;
align-items: center;
justify-content: flex-end;
animation: slideIn 0.5s 0.1s forwards;
transform: translate(100%, 0);
position: relative;
z-index: 2;
} }
.clicker { .clicker {