mirror of
https://github.com/The-Low-Code-Foundation/OpenNoodl.git
synced 2026-01-12 07:12:54 +01:00
Added three new experimental views
This commit is contained in:
@@ -6,6 +6,12 @@ $_sidebar-hover-enter-offset: 250ms;
|
||||
display: flex;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
width: 380px;
|
||||
transition: width 0.3s ease-in-out;
|
||||
|
||||
&--expanded {
|
||||
width: 55vw;
|
||||
}
|
||||
}
|
||||
|
||||
.Toolbar {
|
||||
|
||||
@@ -107,12 +107,13 @@ export interface SideNavigationProps {
|
||||
panel: Slot;
|
||||
|
||||
onExitClick?: React.MouseEventHandler<HTMLDivElement>;
|
||||
isExpanded?: boolean;
|
||||
}
|
||||
|
||||
export function SideNavigation({ toolbar, panel, onExitClick }: SideNavigationProps) {
|
||||
export function SideNavigation({ toolbar, panel, onExitClick, isExpanded = false }: SideNavigationProps) {
|
||||
return (
|
||||
<SideNavigationContextProvider>
|
||||
<div className={css['Root']}>
|
||||
<div className={classNames(css['Root'], isExpanded && css['Root--expanded'])}>
|
||||
<div className={css['Panel']}>{panel}</div>
|
||||
|
||||
<div className={css['Toolbar']}>
|
||||
|
||||
Reference in New Issue
Block a user