From 292cbf138336d83307ba85536b5dcf34a432a693 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 7 Dec 2025 21:03:26 +0200 Subject: [PATCH] feat(ckeditor/watchdog): add a title to the details screen --- apps/client/src/widgets/dialogs/info.tsx | 4 ++-- apps/client/src/widgets/type_widgets/text/EditableText.tsx | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/client/src/widgets/dialogs/info.tsx b/apps/client/src/widgets/dialogs/info.tsx index 6587f3dff..c292db68f 100644 --- a/apps/client/src/widgets/dialogs/info.tsx +++ b/apps/client/src/widgets/dialogs/info.tsx @@ -9,7 +9,7 @@ import { isValidElement } from "preact"; import { ConfirmWithMessageOptions } from "./confirm"; import "./info.css"; -export type InfoExtraProps = Partial>; +export type InfoExtraProps = Partial>; export type InfoProps = ConfirmWithMessageOptions & InfoExtraProps; export default function InfoDialog() { @@ -25,7 +25,7 @@ export default function InfoDialog() { return ( { opts?.callback?.(); setShown(false); diff --git a/apps/client/src/widgets/type_widgets/text/EditableText.tsx b/apps/client/src/widgets/type_widgets/text/EditableText.tsx index a3a29c0a9..d451161e1 100644 --- a/apps/client/src/widgets/type_widgets/text/EditableText.tsx +++ b/apps/client/src/widgets/type_widgets/text/EditableText.tsx @@ -312,13 +312,14 @@ function useWatchdogCrashHandling() {

{t("editable_text.editor_crashed_details_title")}

{formattedCrash}
, { + title: t("editable_text.editor_crashed_title"), size: "lg" }); } } ] // timeout: 20_000 - }) + }); } else if (currentState === "crashedPermanently") { dialog.info(t("editable-text.keeps-crashing")); watchdog.editor?.enableReadOnlyMode("crashed-editor");