diff --git a/src/components/stopPoster/footer.js b/src/components/stopPoster/footer.js index a7af9b69..a991c436 100644 --- a/src/components/stopPoster/footer.js +++ b/src/components/stopPoster/footer.js @@ -80,7 +80,7 @@ const getFirstSlotPosition = slotsAmount => { firstSlotMargin = 25; break; default: - firstSlotMargin = 25; + firstSlotMargin = 480; break; } @@ -138,6 +138,10 @@ const Footer = props => { const templateSlots = get(props, 'template.slots', []); + if (templateSlots.length === 3 && props.isSmallTerminalPoster) { + templateSlots.splice(2, 1); // Compatibility with 3 slot templates for the smaller terminal poster + } + if (templateSlots.length === 5 && props.isSmallTerminalPoster) { templateSlots.splice(4, 1); // Remove the fifth SVG slot to fit the smaller terminal poster footer } @@ -147,7 +151,7 @@ const Footer = props => { return (
- {slots.length === 3 && ( + {slots.length <= 3 && (