-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Polish quick toolbar #2151
Polish quick toolbar #2151
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -379,19 +379,21 @@ class VisualEditorBlock extends Component { | |
component={ FirstChild } | ||
> | ||
<div className="editor-visual-editor__block-controls"> | ||
<BlockSwitcher uid={ block.uid } /> | ||
<Slot name="Formatting.Toolbar" /> | ||
<Toolbar className="editor-visual-editor__mobile-tools"> | ||
{ ( showUI || isHovered ) && <BlockMover uids={ [ block.uid ] } /> } | ||
{ ( showUI || isHovered ) && <BlockRightMenu uid={ block.uid } /> } | ||
<IconButton | ||
className="editor-visual-editor__mobile-toggle" | ||
onClick={ this.toggleMobileControls } | ||
aria-expanded={ showMobileControls } | ||
label={ __( 'Toggle extra controls' ) } | ||
icon="ellipsis" | ||
/> | ||
<div className="editor-visual-editor__group"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need an extra div for this? From the screenshot it seems we can just remove some margins? Or am I missing something? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I moved the drop shadow to a parent container, and that container has to wrap inline-block, and not be full width like the block controls container is. But I agree it's not super elegant. I'll think about how this can be improved. |
||
<BlockSwitcher uid={ block.uid } /> | ||
<Slot name="Formatting.Toolbar" /> | ||
<Toolbar className="editor-visual-editor__mobile-tools"> | ||
{ ( showUI || isHovered ) && <BlockMover uids={ [ block.uid ] } /> } | ||
{ ( showUI || isHovered ) && <BlockRightMenu uid={ block.uid } /> } | ||
<IconButton | ||
className="editor-visual-editor__mobile-toggle" | ||
onClick={ this.toggleMobileControls } | ||
aria-expanded={ showMobileControls } | ||
label={ __( 'Toggle extra controls' ) } | ||
icon="ellipsis" | ||
/> | ||
</Toolbar> | ||
</div> | ||
</div> | ||
</CSSTransitionGroup> | ||
} | ||
|
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.
Remove commented line?