Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
a072742215 Footer: privacy link on its own line on phones
On a phone the "Privacy policy" link wrapped mid-phrase onto a second
line in small grey copyright text at the very bottom, where it was easy
to miss (and could sit under the browser toolbar). It now gets its own
line, never splits, is underlined with a finger-sized tap target, and
the bar keeps clear of the home indicator. Desktop keeps one line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HA82gV9YDZk1XhjJ5LtyAt
2026-10-27 10:28:55 +00:00

View file

@ -22,11 +22,13 @@
{/each} {/each}
</div> </div>
</div> </div>
<div class="border-t border-charcoal/5 px-6 py-5 text-center text-sm text-charcoal/55"> <!-- On a phone the privacy link gets its own line (never split over two) with a
{footer.copyrightText} finger-sized target, and the bar clears the home indicator / browser toolbar. -->
<div class="flex flex-col items-center gap-1 border-t border-charcoal/5 px-6 pt-5 pb-[max(1.25rem,env(safe-area-inset-bottom))] text-center text-sm text-charcoal/55 sm:flex-row sm:justify-center sm:gap-2">
<span>{footer.copyrightText}</span>
{#if footer.privacyPage} {#if footer.privacyPage}
<span aria-hidden="true">·</span> <span class="hidden sm:inline" aria-hidden="true">·</span>
<a class="underline-offset-2 hover:text-sage-dark hover:underline" href={`/${footer.privacyPage}`}>Privacy policy</a> <a class="whitespace-nowrap py-2 text-charcoal/75 underline underline-offset-2 hover:text-sage-dark sm:py-0" href={`/${footer.privacyPage}`}>Privacy policy</a>
{/if} {/if}
</div> </div>
</footer> </footer>