diff --git a/src/components/ai/note-studio-panel.tsx b/src/components/ai/note-studio-panel.tsx index ad5c7d2..d6ab7b3 100644 --- a/src/components/ai/note-studio-panel.tsx +++ b/src/components/ai/note-studio-panel.tsx @@ -131,8 +131,11 @@ export function NoteStudioDetail(props: { noteId: string; episode?: string }) { }> {(current) => ( -
-
+ // Laid out like a Mistral Studio tool page (Text to Speech): a thin + // top bar with the way back and the note's name, the work on a + // wide canvas, and the audio controls on a rail at the right. +
+
{t("aiStudio.backToLibrary")} -
-

{current().title}

-

{current().courseTitle}

-
+
-
- - +
+
+
+ +
+
+
)} diff --git a/src/components/notes/podcast-history.tsx b/src/components/notes/podcast-history.tsx index 80cc1c5..bf8f59c 100644 --- a/src/components/notes/podcast-history.tsx +++ b/src/components/notes/podcast-history.tsx @@ -147,15 +147,18 @@ export function PodcastHistory(props: { /> } > - - {(row) => ( + {/* Keyed on the episode id, not the row object: a list refresh + hands back new objects, and remounting the player on each one + cut the audio mid-load and stopped playback. */} + + {(jobId) => ( )} diff --git a/src/components/notes/podcast-panel.tsx b/src/components/notes/podcast-panel.tsx index 55a3cd1..b8fcfb7 100644 --- a/src/components/notes/podcast-panel.tsx +++ b/src/components/notes/podcast-panel.tsx @@ -15,7 +15,14 @@ import { useT } from "@/stores/preferences-context"; const POLL_MS = 2_000; -export function PodcastPanel(props: { noteId: string; active?: boolean; noteTitle?: string; episode?: string }) { +export function PodcastPanel(props: { + noteId: string; + active?: boolean; + noteTitle?: string; + episode?: string; + /** Drop the card frame where the page itself is the frame (studio rail). */ + flat?: boolean; +}) { const t = useT(); const [format, setFormat] = createSignal("duz_okuma"); const [jobId, setJobId] = createSignal(""); @@ -167,7 +174,7 @@ export function PodcastPanel(props: { noteId: string; active?: boolean; noteTitl } > -
+
diff --git a/src/components/notes/rag-outputs-panel.tsx b/src/components/notes/rag-outputs-panel.tsx index b12fee1..e0ff38c 100644 --- a/src/components/notes/rag-outputs-panel.tsx +++ b/src/components/notes/rag-outputs-panel.tsx @@ -39,6 +39,8 @@ export function RagOutputsPanel(props: { noteTitle?: string; /** Delete control is teacher-only; readers see the list. Defaults to true. */ canManage?: boolean; + /** Drop the card frame where the page itself is the frame (studio canvas). */ + flat?: boolean; }) { const t = useT(); const { locale } = usePreferences(); @@ -199,7 +201,7 @@ export function RagOutputsPanel(props: { }; return ( -
+

{t("courseNotes.ragTitle")}

diff --git a/src/components/rag/rag-study-panel.tsx b/src/components/rag/rag-study-panel.tsx index 9a21c01..575e766 100644 --- a/src/components/rag/rag-study-panel.tsx +++ b/src/components/rag/rag-study-panel.tsx @@ -299,7 +299,7 @@ export function RagStudyPanel() { class={cn( "grid h-[calc(var(--app-viewport)-5.5rem-max(env(safe-area-inset-bottom),var(--android-nav-inset,0px)))] gap-4 max-lg:-mt-2", "lg:-mx-10 lg:-my-6 lg:h-[calc(100dvh-49px-env(safe-area-inset-top))] lg:gap-0", - historyCollapsed() ? "lg:grid-cols-[minmax(0,1fr)]" : "lg:grid-cols-[16.5rem_minmax(0,1fr)]", + historyCollapsed() ? "lg:grid-cols-[minmax(0,1fr)]" : "lg:grid-cols-[260px_minmax(0,1fr)]", )} >