fix: the chat title is the page's level-1 heading for screen readers (#32636)

This commit is contained in:
G30 2026-10-20 14:11:14 -04:00 • committed by GitHub
parent 208dc81912
commit ff96b02b16
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -121,11 +121,11 @@
>
{#if chat?.id}
<div class="flex max-w-full min-w-0 items-center gap-2 mr-2">
<div
<h1
class="min-w-0 truncate py-1 text-left text-[0.9375rem] font-normal text-gray-700 dark:text-gray-300"
>
{title || chat?.chat?.title || $i18n.t('New Chat')}
</div>
</h1>
{#if shareEnabled && chat && (chat.id || $temporaryChatEnabled)}
<Menu
@ -168,6 +168,7 @@
{/if}
</div>
{:else}
<h1 class="sr-only">{$i18n.t('New Chat')}</h1>
<div class="pointer-events-none invisible flex max-w-full min-w-0 items-center gap-2">
<div
class="min-w-0 truncate py-1 text-left text-[0.9375rem] font-normal text-gray-700 dark:text-gray-300"