From 32fc95c667db1544c2854297fb7426b9f8f623f6 Mon Sep 17 00:00:00 2001 From: Titouan BOUETE-GIRAUD <titouan.bouete-giraud@artal.fr> Date: Thu, 9 Nov 2023 13:01:37 +0100 Subject: [PATCH] The submenu now uses a Sidebar instead of a div --- ivette/src/sandbox/sidebar.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ivette/src/sandbox/sidebar.tsx b/ivette/src/sandbox/sidebar.tsx index b30729d3db8..41bcd992848 100644 --- a/ivette/src/sandbox/sidebar.tsx +++ b/ivette/src/sandbox/sidebar.tsx @@ -26,6 +26,7 @@ import { classes } from 'dome/misc/utils'; import { Item, Section } from "dome/frame/sidebars"; import { Catch } from 'dome/errors'; import { SideBarCategoryProps, registerSandbox } from 'ivette'; +import * as sb from '../../src/dome/renderer/frame/sidebars'; import './style.css'; /* -------------------------------------------------------------------------- */ @@ -145,7 +146,6 @@ export function SideBar(): JSX.Element { const classNameSecondary = classes( 'dome-xSideBar-double-secondary', - 'dome-xSideBar', 'dome-color-frame', ); @@ -190,10 +190,10 @@ export function SideBar(): JSX.Element { ))} </> </div> - <div className={classNameSecondary + + <sb.SideBar className={classNameSecondary + (categories[selectedCategory].display === false ? 'dome-erased' : '')}> {categories[selectedCategory].children} - </div> + </sb.SideBar> </div> </Catch> ); -- GitLab