Constrain main content area to 1200px max-width
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
41
main.py
41
main.py
@@ -158,30 +158,31 @@ def index():
|
|||||||
|
|
||||||
@ui.refreshable
|
@ui.refreshable
|
||||||
def render_main_content():
|
def render_main_content():
|
||||||
if not state.file_path or not state.file_path.exists():
|
with ui.column().classes('w-full q-pa-md').style('max-width: 1200px; margin: 0 auto'):
|
||||||
ui.label('Select a file from the sidebar to begin.').classes(
|
if not state.file_path or not state.file_path.exists():
|
||||||
'text-subtitle1 q-pa-lg')
|
ui.label('Select a file from the sidebar to begin.').classes(
|
||||||
return
|
'text-subtitle1 q-pa-lg')
|
||||||
|
return
|
||||||
|
|
||||||
ui.label(f'Editing: {state.file_path.name}').classes('text-h5 q-mb-lg').style('font-weight: 600')
|
ui.label(f'Editing: {state.file_path.name}').classes('text-h5 q-mb-lg').style('font-weight: 600')
|
||||||
|
|
||||||
with ui.tabs().classes('w-full').style('border-bottom: 1px solid var(--border)') as tabs:
|
with ui.tabs().classes('w-full').style('border-bottom: 1px solid var(--border)') as tabs:
|
||||||
ui.tab('batch', label='Batch Processor')
|
ui.tab('batch', label='Batch Processor')
|
||||||
ui.tab('timeline', label='Timeline')
|
ui.tab('timeline', label='Timeline')
|
||||||
ui.tab('raw', label='Raw Editor')
|
ui.tab('raw', label='Raw Editor')
|
||||||
|
|
||||||
with ui.tab_panels(tabs, value='batch').classes('w-full'):
|
with ui.tab_panels(tabs, value='batch').classes('w-full'):
|
||||||
with ui.tab_panel('batch'):
|
with ui.tab_panel('batch'):
|
||||||
render_batch_processor(state)
|
render_batch_processor(state)
|
||||||
with ui.tab_panel('timeline'):
|
with ui.tab_panel('timeline'):
|
||||||
render_timeline_tab(state)
|
render_timeline_tab(state)
|
||||||
with ui.tab_panel('raw'):
|
with ui.tab_panel('raw'):
|
||||||
render_raw_editor(state)
|
render_raw_editor(state)
|
||||||
|
|
||||||
if state.show_comfy_monitor:
|
if state.show_comfy_monitor:
|
||||||
ui.separator()
|
ui.separator()
|
||||||
with ui.expansion('ComfyUI Monitor', icon='dns').classes('w-full'):
|
with ui.expansion('ComfyUI Monitor', icon='dns').classes('w-full'):
|
||||||
render_comfy_monitor(state)
|
render_comfy_monitor(state)
|
||||||
|
|
||||||
def load_file(file_name: str):
|
def load_file(file_name: str):
|
||||||
"""Load a JSON file and refresh the main content."""
|
"""Load a JSON file and refresh the main content."""
|
||||||
|
|||||||
Reference in New Issue
Block a user