fix: Always show "note from selection" option in toolbar to prevent layout shift on smaller widths (skip e2e)
This commit is contained in:
@@ -801,7 +801,6 @@ const ToolbarPlugin = () => {
|
|||||||
<Icon type="chevron-down" size="custom" className="ml-2 h-4 w-4 md:h-3.5 md:w-3.5" />
|
<Icon type="chevron-down" size="custom" className="ml-2 h-4 w-4 md:h-3.5 md:w-3.5" />
|
||||||
</ToolbarButton>
|
</ToolbarButton>
|
||||||
)}
|
)}
|
||||||
{hasNonCollapsedSelection && (
|
|
||||||
<ToolbarButton
|
<ToolbarButton
|
||||||
name={
|
name={
|
||||||
<>
|
<>
|
||||||
@@ -816,8 +815,8 @@ const ToolbarPlugin = () => {
|
|||||||
onSelect={() => {
|
onSelect={() => {
|
||||||
editor.dispatchCommand(CREATE_NOTE_FROM_SELECTION_COMMAND, undefined)
|
editor.dispatchCommand(CREATE_NOTE_FROM_SELECTION_COMMAND, undefined)
|
||||||
}}
|
}}
|
||||||
|
disabled={!hasNonCollapsedSelection}
|
||||||
/>
|
/>
|
||||||
)}
|
|
||||||
</Toolbar>
|
</Toolbar>
|
||||||
{isMobile && (
|
{isMobile && (
|
||||||
<button
|
<button
|
||||||
|
|||||||
Reference in New Issue
Block a user