Skip to content

Commit

Permalink
fix the issue with small logo in the footer on mobile screens
Browse files Browse the repository at this point in the history
  • Loading branch information
tsubik committed Dec 4, 2024
1 parent b7ff19d commit e4e0847
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 14 deletions.
26 changes: 13 additions & 13 deletions components/layout/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,20 @@ const Footer = () => {
<span>Phone +1(202) 729-7600</span>
<span>Fax: +1 (202) 720 7610</span>
</p>
</div>

<div className="footer-links">
<Link href="/terms" prefetch={false} legacyBehavior>
{intl.formatMessage({ id: 'terms.title' })}
</Link>
<span> | </span>
<Link href="/privacy-policy" prefetch={false} legacyBehavior>
{intl.formatMessage({ id: 'Privacy Policy' })}
</Link>
<span> | </span>
<button type="button" onClick={handleCookiePreferencesClick} className="c-link-button">
{intl.formatMessage({ id: 'Cookie Preferences' })}
</button>
</div>
<div className="footer-links">
<Link href="/terms" prefetch={false} legacyBehavior>
{intl.formatMessage({ id: 'terms.title' })}
</Link>
<span> | </span>
<Link href="/privacy-policy" prefetch={false} legacyBehavior>
{intl.formatMessage({ id: 'Privacy Policy' })}
</Link>
<span> | </span>
<button type="button" onClick={handleCookiePreferencesClick} className="c-link-button">
{intl.formatMessage({ id: 'Cookie Preferences' })}
</button>
</div>
</div>
</div>
Expand Down
5 changes: 5 additions & 0 deletions css/components/layout/_footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
color: $color-white;
display: flex;
justify-content: space-between;
flex-wrap: wrap;
}

.footer-item {
Expand Down Expand Up @@ -105,6 +106,8 @@
.footer-item {
&.wri-contact-details {
p {
margin-bottom: 0;

@include breakpoint(small only) {
font-size: $font-size-small;

Expand Down Expand Up @@ -139,6 +142,8 @@
.footer-links {
margin-top: $space-1 * 2;
white-space: nowrap;
flex-basis: 100%;
text-align: right;

a, .c-link-button {
color: $white;
Expand Down
2 changes: 1 addition & 1 deletion e2e/cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = defineConfig({
viewportWidth: 1280,
viewportHeight: 720,
env: {
pluginVisualRegressionMaxDiffThreshold: 0.03,
pluginVisualRegressionMaxDiffThreshold: 0.036,
},
e2e: {
baseUrl: 'http://localhost:4000',
Expand Down

0 comments on commit e4e0847

Please sign in to comment.