Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ import panel as pn
|
|
| 2 |
|
| 3 |
|
| 4 |
# Create buttons for the toggleable sidebar
|
| 5 |
-
button1 = pn.widgets.Button(icon = 'home', name="Home", icon_size='2em', width=130)
|
| 6 |
button2 = pn.widgets.Button(icon = 'file-analytics', name='My papers', icon_size='2em', width=130)
|
| 7 |
button3 = pn.widgets.Button(icon = 'settings', icon_size='2em', name='Settings', width=130)
|
| 8 |
|
|
@@ -45,5 +45,14 @@ template = pn.template.FastListTemplate(
|
|
| 45 |
|
| 46 |
)
|
| 47 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
# Run the app
|
| 49 |
template.servable()
|
|
|
|
| 2 |
|
| 3 |
|
| 4 |
# Create buttons for the toggleable sidebar
|
| 5 |
+
button1 = pn.widgets.Button(icon = 'home', name="Home", icon_size='2em', width=130, css_classes=['custom-button'])
|
| 6 |
button2 = pn.widgets.Button(icon = 'file-analytics', name='My papers', icon_size='2em', width=130)
|
| 7 |
button3 = pn.widgets.Button(icon = 'settings', icon_size='2em', name='Settings', width=130)
|
| 8 |
|
|
|
|
| 45 |
|
| 46 |
)
|
| 47 |
|
| 48 |
+
# Custom CSS to increase the size of the text inside the "My papers" button
|
| 49 |
+
custom_css = """
|
| 50 |
+
.custom-button .bk.label {
|
| 51 |
+
font-size: 20px;
|
| 52 |
+
}
|
| 53 |
+
"""
|
| 54 |
+
|
| 55 |
+
template.add_theme(pn.template.BaseTheme(json=custom_css))
|
| 56 |
+
|
| 57 |
# Run the app
|
| 58 |
template.servable()
|