"...MaskRCNN/git@developer.sourcefind.cn:dcuai/dlexamples.git" did not exist on "557ae9c486008189babf389a1c2faa7d46e440ed"
Commit eb98631f authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

refac

parent cc4e192a
...@@ -2,10 +2,12 @@ ...@@ -2,10 +2,12 @@
import { settings } from '$lib/stores'; import { settings } from '$lib/stores';
import { WEBUI_BASE_URL } from '$lib/constants'; import { WEBUI_BASE_URL } from '$lib/constants';
export let className = 'size-8';
export let src = '/user.png'; export let src = '/user.png';
</script> </script>
<div class={($settings?.chatDirection ?? 'LTR') === 'LTR' ? 'mr-3' : 'ml-3'}> <div class={`flex-shrink-0 ${($settings?.chatDirection ?? 'LTR') === 'LTR' ? 'mr-3' : 'ml-3'}`}>
<img <img
crossorigin="anonymous" crossorigin="anonymous"
src={src.startsWith(WEBUI_BASE_URL) || src={src.startsWith(WEBUI_BASE_URL) ||
...@@ -14,7 +16,7 @@ ...@@ -14,7 +16,7 @@
src.startsWith('/') src.startsWith('/')
? src ? src
: `/user.png`} : `/user.png`}
class=" w-8 object-cover rounded-full" class=" {className} object-cover rounded-full -translate-y-0.5"
alt="profile" alt="profile"
draggable="false" draggable="false"
/> />
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment