hkayabilisim commited on
Commit
bc436b6
·
1 Parent(s): 0b1cd96

Bugfix a layout problem in engine page

Browse files

When the MapInfo panel has many attributes to display,
the LayerDisplayer panel is pushed to the bottom of the page
leaving a large empty space between MetricPanel and LayerDisplayer.

Files changed (1) hide show
  1. tomorrowcities/pages/engine.py +12 -12
tomorrowcities/pages/engine.py CHANGED
@@ -1182,19 +1182,19 @@ def MapInfo():
1182
 
1183
  @solara.component
1184
  def WebApp():
1185
- with solara.Columns([30,70]):
1186
  with solara.Column():
1187
- solara.Markdown('[Download Sample Dataset](https://drive.google.com/file/d/1BGPZQ2IKJHY9ExOCCHcNNrCTioYZ8D1y/view?usp=sharing)')
1188
- FileDropZone()
1189
- ExecutePanel()
1190
- with solara.Column():
1191
- LayerController()
1192
- with solara.Columns([80,20]):
1193
- MapViewer()
1194
- MapInfo()
1195
- MetricPanel()
1196
-
1197
- LayerDisplayer()
1198
 
1199
  @solara.component
1200
  def Page(name: Optional[str] = None, page: int = 0, page_size=100):
 
1182
 
1183
  @solara.component
1184
  def WebApp():
1185
+ with solara.Columns([86,14]):
1186
  with solara.Column():
1187
+ with solara.Columns([30,70]):
1188
+ with solara.Column():
1189
+ solara.Markdown('[Download Sample Dataset](https://drive.google.com/file/d/1BGPZQ2IKJHY9ExOCCHcNNrCTioYZ8D1y/view?usp=sharing)')
1190
+ FileDropZone()
1191
+ ExecutePanel()
1192
+ with solara.Column():
1193
+ LayerController()
1194
+ MapViewer()
1195
+ MetricPanel()
1196
+ LayerDisplayer()
1197
+ MapInfo()
1198
 
1199
  @solara.component
1200
  def Page(name: Optional[str] = None, page: int = 0, page_size=100):