mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +00:00
fix: fix color of Attach Webpage button when model not support file uploads
This commit is contained in:
parent
e24fec0de4
commit
e225435c8e
1 changed files with 3 additions and 1 deletions
|
|
@ -199,7 +199,9 @@
|
||||||
className="w-full"
|
className="w-full"
|
||||||
>
|
>
|
||||||
<DropdownMenu.Item
|
<DropdownMenu.Item
|
||||||
class="flex gap-2 items-center px-3 py-1.5 text-sm cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 rounded-xl"
|
class="flex gap-2 items-center px-3 py-1.5 text-sm cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-800 rounded-xl {!fileUploadEnabled
|
||||||
|
? 'opacity-50'
|
||||||
|
: ''}"
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
if (fileUploadEnabled) {
|
if (fileUploadEnabled) {
|
||||||
showAttachWebpageModal = true;
|
showAttachWebpageModal = true;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue