Skip to content

Commit

Permalink
some indication that you can scroll further (#118)
Browse files Browse the repository at this point in the history
* scroll_hint function added

* added a visual aid for scroll
  • Loading branch information
atabak-alishiri authored Apr 20, 2024
1 parent 5a95965 commit bc12ef5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@
app = dash.Dash(__name__, external_stylesheets=[dbc.themes.BOOTSTRAP])
server = app.server

def scroll_hint():
return dbc.Card(
html.P("Scroll for more", className="text-center"),
body=True,
className="sticky-bottom mb-2",
style={'backgroundColor': '#f8f9fa', 'opacity': '0.7'}
)

# Configure cache
cache = Cache(app.server, config={
'CACHE_TYPE': 'simple'
Expand Down Expand Up @@ -353,6 +361,7 @@ def footer():
],
justify="center",
),
scroll_hint(),
footer(),
]
),
Expand Down

0 comments on commit bc12ef5

Please sign in to comment.