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

This commit is contained in:
G30 authored and GitHub committed 2026-10-21 03:11:14 +09:00
1 parent 208dc81912
commit ff96b02b16
1 file changed
+3 -2
+3 -2
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"