krusty-is-cool / Covid-Dashboard

A simple dashboard
0 stars 1 forks source link

Main content padding and plotly responsiveness #1

Closed raymas closed 4 years ago

raymas commented 4 years ago

When reaching the github pages deployment, we can observe an incorrect padding behavior on the navbar and a lack of responsiveness for the graph.

Expected behavior

Content padding

The main container should use 100% of the viewport's width.

Responsiveness

Resizing the window should also resize the graph to match the new width.

Current behavior

Content padding

Background is colored in red

The main content is left and right padded by 15px. padding

Responsiveness

The plot is not listening for window resize events. The website was opened in fullscreen and resized down to 50%. resize

Possible solutions

These two files are responsible of the behavior: