Skip to content
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

Manual cherry pick for #65627 #66119

Merged
merged 2 commits into from
Oct 17, 2024
Merged

Commits on Oct 17, 2024

  1. Make zoom out vertical toolbar consistent (#65627)

    * enable vertical toolbar for non full width elements, anchor based on parent
    
    * Update packages/block-editor/src/components/block-popover/index.js
    
    Co-authored-by: Dave Smith <[email protected]>
    
    * Update packages/block-editor/src/components/block-popover/index.js
    
    Co-authored-by: Dave Smith <[email protected]>
    
    * make zoom out check a dependency of the memoization, improve code readability
    
    * comment typos
    
    * subscribe to state instead of calculating zoom out view state when calculating the anchor
    
    * get the section wrapper for anchoring instead of the parent
    
    * use a selector instead of computing on the fly the parent section
    
    * check if the block element exists yet before computing the anchor
    
    * check if the block element exists yet before computing the anchor
    
    * differentiate between section toolbar and block toolbar for correct positioning when both are visible
    
    * address some nits
    
    * make the select in anchor setting rerun when block selection changes
    
    * fix bug with anchor rect when zoom out not engaged
    
    * fix typo
    
    * Use root container element in post editor as popover anchor
    
    * improve comment
    
    * improve comment to max improvement possible
    
    Co-authored-by: Dave Smith <[email protected]>
    
    * mega nit commit
    
    Co-authored-by: Dave Smith <[email protected]>
    
    * Fix bug with Posts with no full width blocks
    
    * give up on section root, always seek canvas element to position vertical toolbar, also fix typo
    
    * introduce the concept of canvas via a 1st variable
    
    * Use `__unstableContentRef` for zoomed out toolbar positioning instead of dom classname
    
    ---------
    Co-authored-by: draganescu <[email protected]>
    Co-authored-by: getdave <[email protected]>
    Co-authored-by: talldan <[email protected]>
    Co-authored-by: ciampo <[email protected]>
    Co-authored-by: jsnajdr <[email protected]>
    Co-authored-by: MaggieCabrera <[email protected]>
    Co-authored-by: richtabor <[email protected]>
    Co-authored-by: stokesman <[email protected]>
    Co-authored-by: andrewserong <[email protected]>
    11 people authored and cbravobernal committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    53fd74c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7cf8417 View commit details
    Browse the repository at this point in the history