chat colors, IBM Plex Sans

This commit is contained in:
2026-04-01 01:45:35 -04:00
parent a7b0d17fa1
commit 9e6a20c218
5 changed files with 94 additions and 12 deletions

View File

@@ -496,8 +496,18 @@ const chatStyles = {
onMounted(() => {
wsManager.addHandler(handleMessage)
// Focus on the chat input when component mounts
setTimeout(() => {
// Inject styles into shadow DOM to widen message bubbles
const chatEl = document.querySelector('vue-advanced-chat')
if (chatEl?.shadowRoot) {
const style = document.createElement('style')
style.textContent = `
.vac-message-wrapper .vac-message-box { max-width: 80%; }
.vac-message-wrapper .vac-offset-current { margin-left: 20%; }
`
chatEl.shadowRoot.appendChild(style)
}
const chatInput = document.querySelector('.vac-textarea') as HTMLTextAreaElement
if (chatInput) {
chatInput.focus()