Show the Nostr profile editor error inline with the save button
CI / Test (pull_request) Successful in 50s

The save-time error (e.g. a rejected signature) sat on its own line above the button. Move it into the footer row: at the start of the line and vertically centered on desktop, and on the line above the full-width button on mobile.
This commit is contained in:
raucao committed 2026-11-19 18:50:50 +04:00
1 parent e2ff905bdb
commit 22b1e59f8d
1 file changed
+4 -5
@@ -163,12 +163,11 @@
</div>
</div>
<p class="error-msg mt-2 hidden" data-nostr-profile-editor-target="error"></p>
<p class="mt-8 pt-6 border-t border-gray-200 text-right">
<%= f.submit "Save profile", class: "btn-md btn-blue w-full md:w-auto",
<div class="mt-8 pt-6 border-t border-gray-200 flex flex-col gap-2 md:flex-row md:items-center md:gap-4">
<p class="error-msg hidden" data-nostr-profile-editor-target="error"></p>
<%= f.submit "Save profile", class: "btn-md btn-blue w-full md:w-auto md:ml-auto",
data: { :'nostr-profile-editor-target' => "submit" } %>
</p>
</div>
<% end %>
</main>
<footer>