Skip to content

Commit

Permalink
Update section padding for element widths
Browse files Browse the repository at this point in the history
REDMINE-20384
  • Loading branch information
tf committed Aug 28, 2023
1 parent 022fad4 commit 99f34ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe('section padding', () => {
const {getSectionByPermaId} = renderEntry({
seed: {
sections: [{id: 5, permaId: 6}],
contentElements: [{sectionId: 5, configuration: {position: 'full'}}]
contentElements: [{sectionId: 5, configuration: {width: 3}}]
}
});

Expand Down
2 changes: 1 addition & 1 deletion entry_types/scrolled/package/src/frontend/Section.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ function heightMode(section) {

function endsWithFullWidthElement(elements) {
const lastElement = elements[elements.length - 1];
return lastElement && lastElement.position === 'full';
return lastElement && lastElement.position === 'inline' && lastElement.width === 3;
}

function percentToFraction(value, {defaultValue}) {
Expand Down

0 comments on commit 99f34ad

Please sign in to comment.