feat: fixed-height near-white input, terse-answer system prompt
This commit is contained in:
@@ -72,16 +72,21 @@
|
||||
width: 100%;
|
||||
border: none;
|
||||
background: transparent;
|
||||
color: #555;
|
||||
color: #f2f2f2;
|
||||
font-size: 14px;
|
||||
outline: none;
|
||||
resize: none;
|
||||
height: 28px;
|
||||
max-height: 28px;
|
||||
min-height: 28px;
|
||||
line-height: 1.5;
|
||||
padding: 4px 0;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
font-family: proxima_nova_rgregular, Arial, sans-serif;
|
||||
caret-color: #c4c4c4;
|
||||
}
|
||||
#chat-input::placeholder { color: #d0d0d0; }
|
||||
#chat-input::placeholder { color: transparent; }
|
||||
|
||||
/* Slight override to keep well-lg radius 0 like real portal */
|
||||
.well-lg { border-radius: 0; }
|
||||
@@ -356,11 +361,6 @@
|
||||
}, 50);
|
||||
});
|
||||
|
||||
// Auto-grow textarea
|
||||
inputEl.addEventListener('input', () => {
|
||||
inputEl.style.height = 'auto';
|
||||
inputEl.style.height = inputEl.scrollHeight + 'px';
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user