-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[IMP] TopBar: Add responsiveness #5647
base: master
Are you sure you want to change the base?
Conversation
e2ad9aa
to
5fa420b
Compare
7e3b1c9
to
a746e32
Compare
a746e32
to
24ead17
Compare
24ead17
to
53d8940
Compare
The current top bar does not behave well on narrow screens, the top bar composer will disappear and the whole layout will become scrollable because of it. Past the composer, the toolbox is also quite large. This revision adds some responsiveness by: - pushing the top bar composer to the bottom of top bar when the latter is too narrow - hiding some items from the toolbar in a popover when necessary Task: 4562073
53d8940
to
bf95e66
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice one 👍 It's easier to read the topbar template now, and we can add items from odoo !
I have one concern, if we add an item from odoo, it will break the display with the hardcoded threshold :/
Didn't read all the tests, my comments are mainly nitpick.
I added a screenshot in the pad.
we could alternatively decide to set the section size in the registry itself, with a sequence. Otherwise we could decide to apply a rule by counting the number of items in each section and use it to define the thresholds. I don't know if we need it right now though |
cbb9198
to
227940f
Compare
import { useToolBarDropdownStore } from "../../helpers/top_bar_tool_hook"; | ||
import { Menu } from "../../menu/menu"; | ||
|
||
formatNumberMenuItemSpec; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👀
Description:
description of this task, what is implemented and why it is implemented that way.
Task: TASK_ID
review checklist