mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
Merge pull request #17812 from silentoplayz/long-text-truncation
fix: truncate long names in delete confirmation modals
This commit is contained in:
commit
2c80f60f3e
5 changed files with 6 additions and 6 deletions
|
|
@ -595,7 +595,7 @@
|
||||||
deleteHandler(selectedFunction);
|
deleteHandler(selectedFunction);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div class=" text-sm text-gray-500">
|
<div class=" text-sm text-gray-500 truncate">
|
||||||
{$i18n.t('This will delete')} <span class=" font-semibold">{selectedFunction.name}</span>.
|
{$i18n.t('This will delete')} <span class=" font-semibold">{selectedFunction.name}</span>.
|
||||||
</div>
|
</div>
|
||||||
</DeleteConfirmDialog>
|
</DeleteConfirmDialog>
|
||||||
|
|
|
||||||
|
|
@ -46,8 +46,8 @@
|
||||||
<div class=" text-sm dark:text-gray-300 mb-1">
|
<div class=" text-sm dark:text-gray-300 mb-1">
|
||||||
{#each selectedTools as tool}
|
{#each selectedTools as tool}
|
||||||
<Collapsible buttonClassName="w-full mb-0.5">
|
<Collapsible buttonClassName="w-full mb-0.5">
|
||||||
<div>
|
<div class="truncate">
|
||||||
<div class="text-sm font-medium dark:text-gray-100 text-gray-800">
|
<div class="text-sm font-medium dark:text-gray-100 text-gray-800 truncate">
|
||||||
{tool?.name}
|
{tool?.name}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -340,7 +340,7 @@
|
||||||
showDeleteConfirm = false;
|
showDeleteConfirm = false;
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div class=" text-sm text-gray-500">
|
<div class=" text-sm text-gray-500 truncate">
|
||||||
{$i18n.t('This will delete')} <span class=" font-semibold">{selectedNote.title}</span>.
|
{$i18n.t('This will delete')} <span class=" font-semibold">{selectedNote.title}</span>.
|
||||||
</div>
|
</div>
|
||||||
</DeleteConfirmDialog>
|
</DeleteConfirmDialog>
|
||||||
|
|
|
||||||
|
|
@ -156,7 +156,7 @@
|
||||||
deleteHandler(deletePrompt);
|
deleteHandler(deletePrompt);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div class=" text-sm text-gray-500">
|
<div class=" text-sm text-gray-500 truncate">
|
||||||
{$i18n.t('This will delete')} <span class=" font-semibold">{deletePrompt.command}</span>.
|
{$i18n.t('This will delete')} <span class=" font-semibold">{deletePrompt.command}</span>.
|
||||||
</div>
|
</div>
|
||||||
</DeleteConfirmDialog>
|
</DeleteConfirmDialog>
|
||||||
|
|
|
||||||
|
|
@ -522,7 +522,7 @@
|
||||||
deleteHandler(selectedTool);
|
deleteHandler(selectedTool);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div class=" text-sm text-gray-500">
|
<div class=" text-sm text-gray-500 truncate">
|
||||||
{$i18n.t('This will delete')} <span class=" font-semibold">{selectedTool.name}</span>.
|
{$i18n.t('This will delete')} <span class=" font-semibold">{selectedTool.name}</span>.
|
||||||
</div>
|
</div>
|
||||||
</DeleteConfirmDialog>
|
</DeleteConfirmDialog>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue