diff --git a/chat.html b/chat.html index ec05099..2c4e065 100644 --- a/chat.html +++ b/chat.html @@ -53,10 +53,20 @@ border-radius: 0.8rem; max-width: 85%; margin-top: 1rem; + background: var(--bg-user-message); + overflow-x: auto; } + + .message :is(textarea) { + display: block; + } + + .user-message { + margin-left: auto; + } + .user-message > div { color: var(--text-user); - background: var(--bg-user-message); margin-left: auto; white-space: pre-wrap; } @@ -69,7 +79,6 @@ padding: 0.5rem 2.5rem 0.5rem 0.5rem; background: var(--bg-code); border-radius: 0.4rem; - overflow-x: auto; white-space: pre; } .copy-btn { @@ -118,13 +127,22 @@ .submit.busy { animation: both pulse 1s infinite; } + .model-opt__label:has(input[checked]) { + font-weight: 700; + } #model-selector, #history-panel { + font-size: 0.8em; position: absolute; + border-radius: 0.5rem; top: 1rem; opacity: 0.3; padding: 0.5rem; cursor: pointer; + background-color: color-mix(in srgb, var(--bg-secondary) 30%, transparent); + } + :is(#model-selector, #history-panel):hover { + background-color: color-mix(in srgb, var(--bg-secondary) 80%, transparent); } #model-selector { left: 1rem; @@ -180,12 +198,11 @@
- + - - + @@ -214,7 +231,7 @@ -