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
This commit is contained in:
parent
8076dd48ed
commit
a072742215
1 changed files with 8 additions and 6 deletions
|
|
@ -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. -->
|
||||||
{#if footer.privacyPage}
|
<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 aria-hidden="true">·</span>
|
<span>{footer.copyrightText}</span>
|
||||||
<a class="underline-offset-2 hover:text-sage-dark hover:underline" href={`/${footer.privacyPage}`}>Privacy policy</a>
|
{#if footer.privacyPage}
|
||||||
{/if}
|
<span class="hidden sm:inline" aria-hidden="true">·</span>
|
||||||
|
<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}
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue