-
Notifications
You must be signed in to change notification settings - Fork 88
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
Feature/noid/avatar menu use actions component #1670
Conversation
Signed-off-by: Marco Ambrosini <[email protected]>
Use the correct variable for iterating over the menu items Signed-off-by: Vincent Petry <[email protected]>
Fix avatar popover trigger placement and alignment. Fix icon size in menu item to be 16px instead of 44px. Signed-off-by: Vincent Petry <[email protected]>
VPopover is always visible even when "open" is false. This fix makes it hidden visually off screen instead. Solves issues with flying arrows when opening and closing some action menus. Signed-off-by: Vincent Petry <[email protected]>
Signed-off-by: Vincent Petry <[email protected]>
Whenever the popover is set to "open" first, if the contents hasn't already been populated in the current tick, the popover's position will appear in the wrong location. Then, directly in the next tick its position is corrected based on the newly appeared content. To avoid the visual glitch we first keep it with "visibility: hidden" upon opening, and then display it once its position has been calculated. Signed-off-by: Vincent Petry <[email protected]>
When initially hiding the popover during size / position calculation, we need to override the popover's initial visibility and position to avoid glitches like scrollbars appearing. Once the correct position has been calculated by v-tooltip/popper, we can remove the strong hiding class. Signed-off-by: Vincent Petry <[email protected]>
Signed-off-by: Vincent Petry <[email protected]>
Right, and we still need a place for the actions. Maybe a sub-menu inside that dialog, which itself will be the Actions menu. Was there an existing discussion somewhere already about this new design ? |
What is the plan here? The Avatar component is the last one to use the deprecated PopoverMenu component and I think it would be good to migrate away from it. |
Superseded by #4017. |
This makes the Avatar component use the Actions component for its menu.
Issues: