Skip to content

Commit

Permalink
AB#44833: Fix smaller terminal poster footer vector placements (#435)
Browse files Browse the repository at this point in the history
  • Loading branch information
e-halinen authored Dec 12, 2024
1 parent 8c0cbf8 commit f932907
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/stopPoster/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const getFirstSlotPosition = slotsAmount => {
firstSlotMargin = 25;
break;
default:
firstSlotMargin = 25;
firstSlotMargin = 480;
break;
}

Expand Down Expand Up @@ -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
}
Expand All @@ -147,7 +151,7 @@ const Footer = props => {
return (
<div className={styles.footerWrapper}>
<InlineSVG className={styles.dottedLine} src={dottedLine} />
{slots.length === 3 && (
{slots.length <= 3 && (
<div>
<InlineSVG className={classnames(styles.footerPiece, styles.hslLogo)} src={hslLogo} />
<InlineSVG
Expand Down

0 comments on commit f932907

Please sign in to comment.