Conversations page: pump, search, read the transcript; docs and the libredesk link
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3544f29d85
commit
45db86d1ff
8 files changed
+127
-16
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { useEffect, useState } from "react";
|
||||
import { useEffect, useRef, useState } from "react";
|
||||
import { Button, Card, Group, Select, TextInput } from "@mantine/core";
|
||||
import { notifications } from "@mantine/notifications";
|
||||
|
||||
@@ -34,3 +34,11 @@ export function Selector({ selection, choose }) {
|
||||
</Card>
|
||||
);
|
||||
}
|
||||
|
||||
// A markdown rendered by the server (report, summary, transcript), at the height of its content once its images are loaded;
|
||||
// sandboxed: no script runs in it
|
||||
export function Page({ title, src }) {
|
||||
const frame = useRef();
|
||||
const fit = () => { const b = frame.current?.contentDocument?.body; if (b) frame.current.style.height = `${b.scrollHeight + 20}px`; };
|
||||
return <iframe ref={frame} title={title} sandbox="allow-same-origin" onLoad={fit} style={{ border: 0, width: "100%", height: 400 }} src={src} />;
|
||||
}
|
||||
Reference in new issue
Block a user