From d08df984d349a29da6a1a9022638cbc46f35551a Mon Sep 17 00:00:00 2001 From: William Casarin Date: Thu, 27 Oct 2022 18:19:59 -0700 Subject: [PATCH] always render events when composing a reply --- webv2/damus.css | 1 - webv2/damus.js | 4 ++-- webv2/index.html | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/webv2/damus.css b/webv2/damus.css index 6400b3c..bf5a1e3 100644 --- a/webv2/damus.css +++ b/webv2/damus.css @@ -85,7 +85,6 @@ button { padding: 10px; margin: 10% auto; width: 60%; - height: 50%; overflow: auto; /* Enable scroll if needed */ background: linear-gradient(0deg, #A74BDB 0%, #C45BFE 100%); border-radius: 15px; diff --git a/webv2/damus.js b/webv2/damus.js index a98f9ea..4b6de3d 100644 --- a/webv2/damus.js +++ b/webv2/damus.js @@ -384,7 +384,7 @@ function render_reply_line_bot() { } function render_event(model, ev, opts={}) { - if (model.rendered[ev.id]) + if (!opts.is_composing && model.rendered[ev.id]) return "" model.rendered[ev.id] = true const profile = model.profiles[ev.pubkey] || { @@ -557,7 +557,7 @@ function reply_to(evid) { replying_to.dataset.evid = evid const ev = DSTATE.all_events[evid] - replying_to.innerHTML = render_event(DSTATE, ev, {nobar: true}) + replying_to.innerHTML = render_event(DSTATE, ev, {is_composing: true, nobar: true}) modal.style.display = replying? "block" : "none"; } diff --git a/webv2/index.html b/webv2/index.html index 939bb43..2200162 100644 --- a/webv2/index.html +++ b/webv2/index.html @@ -6,7 +6,7 @@ Damus Web - +
@@ -43,7 +43,7 @@ - +