diff --git a/app/javascript/stylesheets/application.scss b/app/javascript/stylesheets/application.scss index 66d7945..dc76e0f 100644 --- a/app/javascript/stylesheets/application.scss +++ b/app/javascript/stylesheets/application.scss @@ -1,4 +1,4 @@ -// version 4 +// version 5 @import "tailwindcss/base"; @import "tailwindcss/components"; @import "tailwindcss/utilities"; diff --git a/app/views/wallet/index.html.erb b/app/views/wallet/index.html.erb index 1b9f7db..f87771e 100644 --- a/app/views/wallet/index.html.erb +++ b/app/views/wallet/index.html.erb @@ -29,11 +29,11 @@

- + or

- @@ -47,18 +47,18 @@ buttonShow.addEventListener('click', function(ev) { ev.preventDefault(); - setupCode.style.display = 'block'; - buttonShow.style.display = 'none'; - buttonHide.style.display = 'inline-block'; + setupCode.classList.remove('hidden'); + buttonHide.classList.remove('hidden'); + buttonShow.classList.add('hidden'); window.scrollTo(0, document.body.scrollHeight); }); buttonHide.addEventListener('click', function(ev) { ev.preventDefault(); const el = document.querySelector('#setup-code'); - setupCode.style.display = 'none'; - buttonShow.style.display = 'inline-block'; - buttonHide.style.display = 'none'; + setupCode.classList.add('hidden'); + buttonHide.classList.add('hidden'); + buttonShow.classList.remove('hidden'); }); buttonCopy.addEventListener('click', function(ev) {