add inline replies, ui improvements, rename ViewPersistence->ViewController, add scroll method and highlight

This commit is contained in:
marlon-erler
2026-04-14 13:15:38 +00:00
parent 634e898317
commit f4a3450b14
19 changed files with 508 additions and 122 deletions
+23
View File
@@ -0,0 +1,23 @@
import * as React from "bloatless-react";
import ChatMessageViewModel from "../../ViewModel/Chat/chatMessageViewModel";
import CoreViewModel from "../../ViewModel/Global/coreViewModel";
import { ViewController } from "../viewController";
export function InlineReply (
chatMessageViewModel: ChatMessageViewModel,
) {
const reply = chatMessageViewModel.inlineReply;
if (reply == undefined) return <div></div>
const scroll = () => {
ViewController.scrollToView(reply.chatMessage.id);
}
return (
<div class="inline-reply" on:click={scroll}>
<span>{reply.sender}</span>
<b class="ellipsis" subscribe:innerText={reply.body}></b>
</div>
);
}