diff --git a/apps/dispatch/app/_store/pilot/MrtStore.ts b/apps/dispatch/app/_store/pilot/MrtStore.ts index 735fe473..ea60174f 100644 --- a/apps/dispatch/app/_store/pilot/MrtStore.ts +++ b/apps/dispatch/app/_store/pilot/MrtStore.ts @@ -132,10 +132,7 @@ export const useMrtStore = create( } case "sds": { const { sdsMessage } = pageData as SetSdsPageParams; - const maxLen = 60; const msg = sdsMessage.data.message; - const safeMsg = - typeof msg === "string" && msg.length > maxLen ? msg.slice(0, maxLen) + "…" : msg; set({ page: "sds", lines: [ @@ -145,15 +142,17 @@ export const useMrtStore = create( textSize: "2", }, { - textLeft: safeMsg, + textLeft: msg, style: { whiteSpace: "normal", - overflow: "hidden", - textOverflow: "ellipsis", - maxWidth: "100%", - width: "100%", - display: "block", + overflowWrap: "break-word", wordBreak: "break-word", + display: "block", + maxWidth: "100%", + maxHeight: "100%", + overflow: "auto", + textOverflow: "ellipsis", + lineHeight: "1.2em", }, textSize: "2", },