Show the Nostr profile editor error inline with the save button
CI / Test (pull_request) Successful in 50s
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:
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>
|
||||
|
||||
Reference in new issue
Block a user