Skip to content

Commit c0cffbb

Browse files
committed
f
1 parent a91c51f commit c0cffbb

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

theme/ai.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,14 @@
383383
#ht-ai-header .ht-actions{display:flex;gap:8px;align-items:center;margin-left:auto}
384384
#ht-ai-close,#ht-ai-reset{cursor:pointer;font-size:18px;background:none;border:none;color:var(--ht-ai-panel-fg,#fff);padding:0}
385385
#ht-ai-close:hover,#ht-ai-reset:hover{opacity:.7}
386-
#ht-ai-chat{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:12px;font-size:14px;background:var(--ht-ai-chat-bg,transparent)}
387-
.ht-msg{max-width:90%;line-height:1.4;padding:10px 12px;border-radius:8px;white-space:pre-wrap;word-wrap:break-word}
386+
#ht-ai-chat{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:8px;font-size:14px;background:var(--ht-ai-chat-bg,transparent)}
387+
.ht-msg{max-width:90%;line-height:1.3;padding:8px 10px;border-radius:8px;white-space:pre-wrap;word-wrap:break-word}
388+
.ht-msg p{margin:0 0 6px}
389+
.ht-msg p:last-child{margin-bottom:0}
390+
.ht-msg ul,.ht-msg ol{margin:0 0 6px 16px;padding:0}
391+
.ht-msg li{margin:0 0 4px}
392+
.ht-msg pre{margin:6px 0;padding:6px 8px;border-radius:6px;background:rgba(0,0,0,.2);overflow:auto}
393+
.ht-msg code{font-size:.95em}
388394
.ht-user{align-self:flex-end;background:var(--ht-ai-user-bg,${BRAND_RED});color:var(--ht-ai-user-fg,#fff)}
389395
.ht-ai{align-self:flex-start;background:var(--ht-ai-bot-bg,#222);color:var(--ht-ai-bot-fg,#fff)}
390396
.ht-context{align-self:flex-start;background:var(--ht-ai-context-bg,#333);color:var(--ht-ai-context-fg,#ddd);font-style:italic;font-size:13px}

0 commit comments

Comments
 (0)