Ability to adjust padding/margins of menu items and nav-bar in order to reduce width of nav element for VERY small screens #1065
-
We're a flux licensee using code at https://challenge.domestiq.net - It's been a great library for us - We use the nav bar, modals, toast, and icons extensively. We will be adding a new menu in the nav bar of our site. We have not been able to figure out how to "correctly" reduce the default padding around drop-down menu items, including the Profile menu (which has a user image thumbnail) as well as on the nav-bar itself. The target smallest horizontal resolution where we want to show three nav items, a separator, two normal nav-menus, and the profile menu is 375px, i.e., the screen width of an iPhone SE 2nd Edition. Without padding modifications, this is where we are at - The yellow-highlighted are areas where we believe we could reduce padding and still have a beautiful flux-opinionated UX: Here are the other areas where we would like to reduce padding for individual nav-menus (as well as the nav bar itself): Are there Congratulations on the use of flux in the new Laravel Starter Kits! We're looking forward to some of the new Flux Pro components, such as your charts component, etc. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
@JohnMSykes can you share your code so we can see exactly what components you are using and how you're using them? Thanks! |
Beta Was this translation helpful? Give feedback.
-
@joshhanley
I quickly tested after I removed all of the cruft to ensure it rendered: and iPhoneSE 2nd Edition screen size: I believe you should be good to go! Thanks again... |
Beta Was this translation helpful? Give feedback.
-
Not sure if this is what you're going for? You could include some breakpoints as needed. For the standard dropdowns I just removed the spacing and padding from the navbar.item: px-0 space-x-0
For the profile dropdown, the div containing the image and the chevron both use size-8 so I've overridden the width and reapplied it to the image: [&button[data-flux-profile]*]:w-auto [&_button[data-flux-profile]_img]:w-8 I also removed padding from the profile component: px-0
|
Beta Was this translation helpful? Give feedback.
Not sure if this is what you're going for?
You could include some breakpoints as needed.
For the standard dropdowns I just removed the spacing and padding from the navbar.item:
px-0 space-x-0
For the profile dropdown, the div containing the image and the chevron both use size-8 so I've over…