Creating a navbar with material-ui

后端 未结 6 1008
予麋鹿
予麋鹿 2021-02-05 03:37

I\'m trying to create a simple navbar with material-ui that looks like the one they use on their site. This is the code I wrote to try to replicate it:

import Re         


        
6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-05 04:01

    Latest Update [2018]

    Problem should be fixed in latest version.

    Update #1 [2016]

    At least, the will is there - Not all hope is lost!

    Original Post

    Had the same issue.

    Turns out, it's a bug (#773).

    But you are in luck: This PR provides a solution using CSS. It (kinda) works. Here is a screenshot:

    As you can see, it looks a bit ugly, so you might want to keep fiddling with the CSS to get the tabs appear in the right place.

    NOTE: Eight months ago, the PR got rejected. Apparently, displaying Tabs in AppBar is not high-priority, so, the hackfix solution is all you got at the moment!

    Oh the agony of using pre-release libraries!

提交回复
热议问题