Merge pull request #145 from ollama-webui/dev

fix: user profile image for disabled auth
This commit is contained in:
Timothy Jaeryang Baek 2023-11-25 14:05:05 -05:00 committed by GitHub
commit 3f164ecf16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -314,7 +314,7 @@
<div class=" flex w-full"> <div class=" flex w-full">
<div class=" mr-4"> <div class=" mr-4">
{#if message.role === 'user'} {#if message.role === 'user'}
{#if $config === null} {#if $config === null || !($config?.auth ?? true)}
<img <img
src="{$settings.gravatarUrl ? $settings.gravatarUrl : '/user'}.png" src="{$settings.gravatarUrl ? $settings.gravatarUrl : '/user'}.png"
class=" max-w-[28px] object-cover rounded-full" class=" max-w-[28px] object-cover rounded-full"