Skip to content

Commit 0a47bc4

Browse files
authored
fix: dropdown menu with adjusts to content (#7490)
1 parent cd82f6b commit 0a47bc4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/decap-cms-core/src/components/Editor/EditorToolbar.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ export class EditorToolbar extends React.Component {
450450
return canPublish || canCreate ? (
451451
<ToolbarDropdown
452452
dropdownTopOverlap="40px"
453-
dropdownWidth="150px"
453+
dropdownWidth="max-content"
454454
key="td-publish-create"
455455
renderButton={() => (
456456
<PublishedToolbarButton>
@@ -486,7 +486,7 @@ export class EditorToolbar extends React.Component {
486486
return canCreate ? (
487487
<ToolbarDropdown
488488
dropdownTopOverlap="40px"
489-
dropdownWidth="150px"
489+
dropdownWidth="max-content"
490490
renderButton={() => (
491491
<PublishedToolbarButton>{t('editor.editorToolbar.published')}</PublishedToolbarButton>
492492
)}
@@ -511,7 +511,7 @@ export class EditorToolbar extends React.Component {
511511
<div>
512512
<ToolbarDropdown
513513
dropdownTopOverlap="40px"
514-
dropdownWidth="150px"
514+
dropdownWidth="max-content"
515515
renderButton={() => (
516516
<PublishButton>
517517
{isPersisting

0 commit comments

Comments
 (0)