Quansight / ragna

RAG orchestration framework ⛵️
https://ragna.chat
BSD 3-Clause "New" or "Revised" License
167 stars 21 forks source link

chat bubble cannot be loaded #415

Closed pmeier closed 1 month ago

pmeier commented 1 month ago

Bug description

Chat bubble icon in left side bar is missing

image

This was broken in #312. Previously it looked like

image

The problem is the relative link in https://github.com/Quansight/ragna/blob/0cb205f24ca9fb322ac32a2e1aaec6b34928cd2e/ragna/deploy/_ui/css/left_sidebar/button.css#L27

Since we are currently in /css/left_sidebar, it looks for /css/left_sidebar/imgs/chat_bubble.svg and fails.

How to reproduce the bug?

Open the web UI and look at the left sidebar

Versions and dependencies used

main after #312

Anything else?

This can be fixed by using url("../../imgs/chat_bubble.svg"), but I don't know if that is the best way to do it.

pierrotsmnrd commented 1 month ago

Using url("../../imgs/chat_bubble.svg") is a fair way to have it working. Another solution is to have the image base64-encoded in the CSS, but we don't want that.