Skip to content

Commit

Permalink
Push
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Aug 2, 2024
1 parent 7e9e833 commit 6d78b8e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion core/src/main/resources/lib/form/repeatableProperty.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ THE SOFTWARE.


<f:repeatable field="${attrs.field}" default="${attrs.default}" noAddButton="${attrs.noAddButton}" header="${attrs.header}" add="${attrs.add}" minimum="${attrs.minimum ?: 0}" enableTopButton="${attrs.enableTopButton}">
<div style="width:100%">
<div class="notafoodwriter">
<st:include page="config.jelly" class="${descriptor.clazz}" />
<d:invokeBody/>
</div>
Expand Down
16 changes: 8 additions & 8 deletions war/src/main/js/sortable-drag-drop.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ function registerSortableDragDrop(e) {
forceFallback: true, // Do not use html5 drag & drop behaviour because it does not work with autoscroll
scroll: true,
bubbleScroll: true,
onChoose: function (event) {
const draggableDiv = event.item;
const height = draggableDiv.clientHeight;
draggableDiv.style.height = `${height}px`;
},
onUnchoose: function (event) {
event.item.style.removeProperty("height");
},
// onChoose: function (event) {
// const draggableDiv = event.item;
// const height = draggableDiv.clientHeight;
// draggableDiv.style.height = `${height}px`;
// },
// onUnchoose: function (event) {
// event.item.style.removeProperty("height");
// },
});
}

Expand Down
10 changes: 5 additions & 5 deletions war/src/main/scss/form/_reorderable-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,13 @@ div.to-be-removed {
.help-sibling2 {
display: flex;
flex-direction: column;
gap: 10px;
gap: 0.5rem;
}

.repeated-chunk {
& > div > *:last-of-type {
margin-bottom: 0;
}
//& > div > *:last-of-type {
// margin-bottom: 0;
//}

&__header {
position: relative;
Expand Down Expand Up @@ -257,7 +257,7 @@ div.to-be-removed {
}

.notafoodwriter {
padding: 0.5rem 1rem 1rem;
padding: 0 1rem;

&:empty {
display: none;
Expand Down

0 comments on commit 6d78b8e

Please sign in to comment.