Adopt shared WebUI layout primitives
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { useEffect, useRef, type ReactNode } from "react";
|
||||
import { ArrowBigLeft, ArrowBigLeftDash, ArrowBigRight, ArrowBigRightDash } from "lucide-react";
|
||||
import { Button, Dialog, MessageDisplayPanel, type MessageDisplayAttachment } from "@govoplan/core-webui";
|
||||
import { ActionToolbar, Button, Dialog, MessageDisplayPanel, type MessageDisplayAttachment } from "@govoplan/core-webui";
|
||||
|
||||
// Campaign review/template/mock previews need recipient navigation, review notes,
|
||||
// raw MIME inspection and attachment grouping. Generic mailbox reading uses
|
||||
@@ -106,7 +106,7 @@ export default function CampaignMessagePreviewOverlay({
|
||||
>
|
||||
<div ref={contentRef} className="message-preview-content">
|
||||
{(recipientLabel || recipientNote || navigation) &&
|
||||
<div className="template-preview-toolbar">
|
||||
<ActionToolbar className="template-preview-toolbar">
|
||||
<div>
|
||||
{recipientLabel && <strong>{recipientLabel}</strong>}
|
||||
{recipientNote && <p className="muted small-note">{recipientNote}</p>}
|
||||
@@ -120,7 +120,7 @@ export default function CampaignMessagePreviewOverlay({
|
||||
<button type="button" className="version-arrow" onClick={navigation.onLast} disabled={navigation.index >= navigation.total - 1} title="i18n:govoplan-campaign.last_message.83741110" aria-label="i18n:govoplan-campaign.last_message.83741110"><ArrowBigRightDash aria-hidden="true" /></button>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</ActionToolbar>
|
||||
}
|
||||
|
||||
<MessageDisplayPanel
|
||||
|
||||
Reference in New Issue
Block a user