Skip to content

Commit

Permalink
Adjust 'has-siblings' logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Mar 23, 2023
1 parent d7424d4 commit 4d8d574
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ const MediaReplaceFlow = ( {
'block-editor-media-flow__url-input',
{
'has-siblings':
! canUpload && ! onToggleFeaturedImage,
canUpload || onToggleFeaturedImage,
}
) }
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,13 @@
}

.block-editor-media-flow__url-input {
border-top: $border-width solid $gray-900;
margin-top: $grid-unit-10;
margin-right: -$grid-unit-10;
margin-left: -$grid-unit-10;
padding: $grid-unit-20;

&.has-siblings {
border-top: none;
margin-top: 0;
border-top: $border-width solid $gray-900;
margin-top: $grid-unit-10;
}

.block-editor-media-replace-flow__image-url-label {
Expand Down

0 comments on commit 4d8d574

Please sign in to comment.