P粉7859057972023-08-18 11:16:22
You need to use media queries and set the tag to display none below a specific size.
@media only screen and (max-width : 768px) { span.ant-menu-title-content { display: none; } }
I personally recommend you to use the above (it is the most common way to switch between desktop and mobile devices)
Finally, consider using justify-content: center to center menu items on mobile devices :)