['lastPublish'];
onNavigateCompose: () => void;
- onNavigateFeed: () => void;
}) {
if (!lastPublish) {
return (
@@ -231,19 +228,18 @@ function PublicationResult({
if (report.failed.length === 0) {
return (
-
-
- Published
-
-
- {shortenNpub(report.event_id, true)}
-
-
-
-
+ <>
+
+
+ Published
+
+
+ {shortenNpub(report.event_id, true)}
+
+
+
+ {report.content && {report.content}
}
+ >
);
}
@@ -257,10 +253,7 @@ function PublicationResult({
-
+ {report.content && {report.content}
}
Relay results
diff --git a/frontend/src/styles.css b/frontend/src/styles.css
index 884918d..09d5c52 100644
--- a/frontend/src/styles.css
+++ b/frontend/src/styles.css
@@ -1587,6 +1587,18 @@ select {
flex-basis: 100%;
}
+.publish-preview {
+ margin: 8px 0 0;
+ padding: 10px 12px;
+ background: var(--surface-2);
+ border-radius: var(--radius-sm);
+ font-size: 14px;
+ line-height: 1.5;
+ white-space: pre-wrap;
+ word-break: break-word;
+ max-width: 65ch;
+}
+
.relay-result-list {
margin: 8px 0 0;
padding-left: 18px;
diff --git a/src/ipc.rs b/src/ipc.rs
index d9f6bd1..28b4171 100644
--- a/src/ipc.rs
+++ b/src/ipc.rs
@@ -468,8 +468,11 @@ async fn run_with_app(app: &mut App, request: Request) -> Result,
pub failed: Vec,
+ #[serde(default)]
+ pub content: String,
}
/// Load the last publish report, returning `None` when absent or unreadable.