I have antd menu with labels and icon.
Here is the minimal representation of design.
Codesandbox
Now what I want is to hide the labels and show only icons when menu is starting to show ellipsis. As I am not so fluent with CSS, I wonder if this can be done by means of antd.
2
Answers
You need to use media queries and set display none your labels below a certain size.
I would personnaly advice you to take this one above ( It’s the most common one used for the swap between desktop & mobile)
Last thing think about center your menu items on mobile with a justify-content: center 🙂
Take a parent class above the menu so that this css doesn’t appear on any other page