Spaces:
Sleeping
Sleeping
Update app2.py
Browse files
app2.py
CHANGED
|
@@ -185,16 +185,25 @@ filter_list = pn.widgets.MultiChoice(
|
|
| 185 |
# Layout using Template
|
| 186 |
template = pn.template.FastListTemplate(
|
| 187 |
title="EasySciRead",
|
| 188 |
-
header=[
|
| 189 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 190 |
sidebar=[buttons],
|
| 191 |
accent_base_color="#88d8b0",
|
| 192 |
header_background="#FFFFFF",
|
| 193 |
header_color="#000000",
|
| 194 |
text_align='center',
|
| 195 |
-
sidebar_width=
|
| 196 |
-
sizing_mode
|
| 197 |
)
|
| 198 |
|
|
|
|
|
|
|
|
|
|
| 199 |
# Run the app
|
| 200 |
template.servable()
|
|
|
|
| 185 |
# Layout using Template
|
| 186 |
template = pn.template.FastListTemplate(
|
| 187 |
title="EasySciRead",
|
| 188 |
+
header=[
|
| 189 |
+
pn.Row(
|
| 190 |
+
header_buttons, width=750, sizing_mode='stretch_width'
|
| 191 |
+
),
|
| 192 |
+
pn.Row(filter_list, width=250),
|
| 193 |
+
pn.Row(add_to_header_button, width=55)
|
| 194 |
+
],
|
| 195 |
+
main=main_body_instance.update,
|
| 196 |
sidebar=[buttons],
|
| 197 |
accent_base_color="#88d8b0",
|
| 198 |
header_background="#FFFFFF",
|
| 199 |
header_color="#000000",
|
| 200 |
text_align='center',
|
| 201 |
+
sidebar_width=160,
|
| 202 |
+
sizing_mode='stretch_both'
|
| 203 |
)
|
| 204 |
|
| 205 |
+
# Update the header to populate the header buttons initially
|
| 206 |
+
update_header()
|
| 207 |
+
|
| 208 |
# Run the app
|
| 209 |
template.servable()
|