sidebar working as expected

modalbox working as expected
This commit is contained in:
2025-06-17 20:39:02 +00:00
parent f1d9d05519
commit dc7fa6b2cb
4 changed files with 99 additions and 90 deletions

View File

@@ -2,7 +2,7 @@
import sys
sys.path.append('/workspace')
from dash import Dash, html, dcc, page_container
from dash import Dash, html, dcc, page_container, Output, Input, State, callback
from flask import Flask
import dash_bootstrap_components as dbc
import dash_mantine_components as dmc
@@ -29,11 +29,13 @@ app = Dash(
app.layout = dmc.MantineProvider([
Header(),
html.Div([
html.Div(id="sidebar", className="sidebar"),
html.Div(id="sidebar"), # KEINE className="sidebar" hier!
html.Div(page_container, className="page-content"),
dcc.Store(id="sidebar-state", data={"collapsed": False}),
], style={"display": "flex"}),
])
if __name__ == "__main__":
app.run(host="0.0.0.0", port=8050, debug=(ENV=="development"))