CenterForTheBuiltEnvironment / comfort-dash

Revision of the CBE Comfort Tool using Dash.
0 stars 12 forks source link

Header mobile adapt #24

Closed Marcusxixi closed 1 week ago

Marcusxixi commented 1 week ago

Navbar modification

Description

The navbar has been redesigned to suit the mobile version. In the mobile version, the title will be hidden and the three buttons on the right will be put inside the hamburger. According to the todo list, a lot of useless divs were deleted

Types of change

Implementation

Here is the mobile version of the CBE tool image

In this screenshot, I deleted a lot of unnecessary divs. The reason why I still set the span of the LOGO to auto is that the span will affect the button display of the mobile version. I tested it several times on the web page and found that using auto does not affect the size of the LOGO display. Setting span to a fixed size will not change the display on mobile version. image

I add a line(border-bottom 1px) under the navbar make it looks same as Toby's repo image image

Use callback to adjust the mobile version(change the button's style) image

Make the toggle upper image

The More cbe tools dropdown box contain margin compare to the about and documentation button, For making them look same, I have to move it a little to the right ("margin-left": "250px",) image

I hide the title in mobile version image

Checklists