fix: resolve knowledge tooltip z-index issue in model edit page (#21375)
This commit is contained in:
@@ -170,15 +170,27 @@
|
|||||||
>
|
>
|
||||||
<div class=" text-black dark:text-gray-100 flex items-center gap-1 shrink-0">
|
<div class=" text-black dark:text-gray-100 flex items-center gap-1 shrink-0">
|
||||||
{#if item.type === 'note'}
|
{#if item.type === 'note'}
|
||||||
<Tooltip content={$i18n.t('Note')} placement="top">
|
<Tooltip
|
||||||
|
content={$i18n.t('Note')}
|
||||||
|
placement="top"
|
||||||
|
tippyOptions={{ zIndex: 100000 }}
|
||||||
|
>
|
||||||
<PageEdit className="size-4" />
|
<PageEdit className="size-4" />
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
{:else if item.type === 'collection'}
|
{:else if item.type === 'collection'}
|
||||||
<Tooltip content={$i18n.t('Collection')} placement="top">
|
<Tooltip
|
||||||
|
content={$i18n.t('Collection')}
|
||||||
|
placement="top"
|
||||||
|
tippyOptions={{ zIndex: 100000 }}
|
||||||
|
>
|
||||||
<Database className="size-4" />
|
<Database className="size-4" />
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
{:else if item.type === 'file'}
|
{:else if item.type === 'file'}
|
||||||
<Tooltip content={$i18n.t('File')} placement="top">
|
<Tooltip
|
||||||
|
content={$i18n.t('File')}
|
||||||
|
placement="top"
|
||||||
|
tippyOptions={{ zIndex: 100000 }}
|
||||||
|
>
|
||||||
<DocumentPage className="size-4" />
|
<DocumentPage className="size-4" />
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
{/if}
|
{/if}
|
||||||
@@ -186,6 +198,7 @@
|
|||||||
<Tooltip
|
<Tooltip
|
||||||
content={item.description || decodeString(item?.name)}
|
content={item.description || decodeString(item?.name)}
|
||||||
placement="top-start"
|
placement="top-start"
|
||||||
|
tippyOptions={{ zIndex: 100000 }}
|
||||||
>
|
>
|
||||||
<div class="line-clamp-1 flex-1 text-sm text-left">
|
<div class="line-clamp-1 flex-1 text-sm text-left">
|
||||||
{decodeString(item?.name)}
|
{decodeString(item?.name)}
|
||||||
|
|||||||
Reference in New Issue
Block a user