mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-26 07:11:00 -05:00
fix: the chat title is the page's level-1 heading for screen readers (#32636)
This commit is contained in:
1 file changed
+3
-2
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user