mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-29 08:31:48 -05:00
refac
This commit is contained in:
1 parent
cc58d4ec6e
commit
fd7b5cabc0
3 files changed
+14
-12
No files matched your search
@@ -135,18 +135,19 @@
|
||||
|
||||
<div class="flex items-center translate-x-0.5">
|
||||
{#if disabled}
|
||||
<Tooltip content={$i18n.t('Terminal')} placement="top">
|
||||
<Tooltip content={selectedLabel} placement="top">
|
||||
<button
|
||||
type="button"
|
||||
disabled
|
||||
aria-disabled="true"
|
||||
aria-label={$selectedTerminalId && selectedLabel ? undefined : $i18n.t('Terminal')}
|
||||
aria-label={selectedLabel}
|
||||
class={triggerClass}
|
||||
>
|
||||
<Cloud className="size-3.5" strokeWidth="2" />
|
||||
|
||||
{#if $selectedTerminalId && selectedLabel}
|
||||
<span class="truncate text-[0.8125rem] max-w-[6.25rem] sm:max-w-[9.375rem]"
|
||||
<span
|
||||
class="hidden @min-[40rem]/chat-input:inline truncate text-[0.8125rem] max-w-[9.375rem]"
|
||||
>{selectedLabel}</span
|
||||
>
|
||||
{/if}
|
||||
@@ -154,16 +155,13 @@
|
||||
</Tooltip>
|
||||
{:else}
|
||||
<Dropdown bind:show align="start">
|
||||
<Tooltip content={$i18n.t('Terminal')} placement="top">
|
||||
<button
|
||||
type="button"
|
||||
aria-label={$selectedTerminalId && selectedLabel ? undefined : $i18n.t('Terminal')}
|
||||
class={triggerClass}
|
||||
>
|
||||
<Tooltip content={selectedLabel} placement="top">
|
||||
<button type="button" aria-label={selectedLabel} class={triggerClass}>
|
||||
<Cloud className="size-3.5" strokeWidth="2" />
|
||||
|
||||
{#if $selectedTerminalId && selectedLabel}
|
||||
<span class="truncate text-[0.8125rem] max-w-[6.25rem] sm:max-w-[9.375rem]"
|
||||
<span
|
||||
class="hidden @min-[40rem]/chat-input:inline truncate text-[0.8125rem] max-w-[9.375rem]"
|
||||
>{selectedLabel}</span
|
||||
>
|
||||
{/if}
|
||||
|
||||
Reference in new issue
Block a user