Skip to content

Commit

Permalink
improves layout
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangFahl committed Aug 17, 2023
1 parent 9537a0b commit 025562d
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions nicesrt/webserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,21 +239,18 @@ def toggle_icon(self,button:ui.button):
async def home(self, client:Client):
"""Generates the home page with a map"""
self.setup_menu()
with ui.column():
with ui.splitter() as splitter:
with splitter.before:
with leaflet().classes('w-full h-96') as self.geo_map:
pass
with splitter.after:
with ui.element("div").classes("w-full"):
self.example_selector=FileSelector(path=self.root_path,handler=self.read_and_optionally_render)
self.input_input=ui.input(
value=self.input,
on_change=self.input_changed).props("size=100")
self.tool_button(tooltip="reload",icon="refresh",handler=self.reload_file)
if self.is_local:
self.tool_button(tooltip="open",icon="file_open",handler=self.open_file)


with ui.element("div").classes("w-full"):
self.example_selector=FileSelector(path=self.root_path,handler=self.read_and_optionally_render)
self.input_input=ui.input(
value=self.input,
on_change=self.input_changed).props("size=100")
self.tool_button(tooltip="reload",icon="refresh",handler=self.reload_file)
if self.is_local:
self.tool_button(tooltip="open",icon="file_open",handler=self.open_file)
with leaflet().classes('w-full h-96') as self.geo_map:
pass

self.setup_footer()
if self.args.input:
#await client.connected()
Expand Down

0 comments on commit 025562d

Please sign in to comment.