mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-28 06:22:33 +00:00
fix: the chat title is the page's level-1 heading for screen readers (#32636)
This commit is contained in:
parent
208dc81912
commit
ff96b02b16
1 changed files with 3 additions and 2 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue