Skip to content

Commit 7b69050

Browse files
committed
Fix insert button distance from cards box
Now that cards boxes no longer has margin, we need to ensure it does not come to close if content does not span section REDMINE-21191
1 parent 4160afb commit 7b69050

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

entry_types/scrolled/package/src/frontend/inlineEditing/ContentElementInsertButton.module.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
border-top: solid 1px currentColor;
1818
width: calc(50% - 20px);
1919
position: absolute;
20-
top: 0;
20+
top: calc(space(1.5) - 1px);
21+
z-index: -1;
2122
}
2223

2324
.container::before {
@@ -37,4 +38,8 @@
3738
left: 0;
3839
width: 100%;
3940
height: space(8);
41+
display: flex;
42+
justify-content: center;
43+
align-items: center;
44+
padding-top: space(3)
4045
}

entry_types/scrolled/package/src/frontend/inlineEditing/SectionDecorator.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ export function SectionDecorator({backdrop, section, contentElements, transition
8080
position: 'after'})}
8181
</div>
8282
<MotifAreaVisibilityProvider visible={isSelected}>
83-
<ForcePaddingContext.Provider value={isLastContentElementSelected || isSectionSelected}>
83+
<ForcePaddingContext.Provider value={isLastContentElementSelected ||
84+
isSectionSelected ||
85+
isHighlighted}>
8486
{children}
8587
</ForcePaddingContext.Provider>
8688
</MotifAreaVisibilityProvider>

0 commit comments

Comments
 (0)