style: minor input changes

This commit is contained in:
Lion Arar 2025-10-07 14:16:17 -04:00
parent eed784c1fc
commit aa3bc3d64d
2 changed files with 3 additions and 10 deletions

View File

@ -33,8 +33,8 @@ const text = ref('');
const { messages } = useChatStore();
const { sendMessage } = useChatApi();
const handleSend = async () => {
if (!text.value.trim()) return;
const userMessage = text.value;
const userMessage = text.value.trim();
if (!userMessage) return
text.value = '';
messages.push({
@ -123,18 +123,11 @@ const handleSend = async () => {
position: absolute;
top: 0;
left: 0;
/* attach to the left edge of the drawer */
width: 8px;
/* sensitive area for hover */
height: 100%;
/* full height of the drawer */
cursor: ew-resize;
/* horizontal resize cursor */
z-index: 1000;
/* make sure it's above other content */
/* optional: visual feedback */
background-color: rgba(0, 0, 0, 0);
/* invisible but hoverable */
}
.line-separator {

View File

@ -17,7 +17,7 @@ const md = new MarkdownIt({
// Removes all the h1,h2,h3 to make the Md more user friendly
const cleanMarkdown = (markdown: string): string => {
if (!markdown) return ''
return markdown.replace(/^#{1,3}\s.*$/gm, '')
return markdown.replace(/^#{1,3}\s(.*)$/gm, '#### $1')
}
// Compute parsed content