From 297dda7206cba9f36cc16194d144905c60604946 Mon Sep 17 00:00:00 2001 From: elsirion Date: Sun, 26 May 2024 17:34:49 +0200 Subject: [PATCH] fix: make QR scanner shape uniform across devices --- Cargo.lock | 3 ++- Cargo.toml | 2 +- src/components/submit_form.rs | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b67a992..fb2e8e0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1877,7 +1877,8 @@ dependencies = [ [[package]] name = "leptos-qr-scanner" version = "0.1.0" -source = "git+https://github.com/elsirion/leptos-qr-scanner?rev=5830bd6f75d7836189ef1434f71a10222a737a44#5830bd6f75d7836189ef1434f71a10222a737a44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cb8a7741c4ab79c21360058d5a91d3b71b06e00dcf0856115e21b92e3fc1a90" dependencies = [ "js-sys", "leptos", diff --git a/Cargo.toml b/Cargo.toml index 5d63635..bbf5c32 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,7 +28,7 @@ hex = "0.4.3" itertools = "0.13.0" leptos = { version = "0.6.5", features = ["csr"] } leptos-use = "0.10.2" -leptos-qr-scanner = { git = "https://github.com/elsirion/leptos-qr-scanner", rev = "5830bd6f75d7836189ef1434f71a10222a737a44" } +leptos-qr-scanner = "0.1.0" leptos_meta = { version = "0.6.5", features = ["csr"] } lightning-invoice = { version = "0.26.0", features = [ "serde" ] } qrcode-generator = "4.1.8" diff --git a/src/components/submit_form.rs b/src/components/submit_form.rs index 4c5341e..e7f9dfb 100644 --- a/src/components/submit_form.rs +++ b/src/components/submit_form.rs @@ -61,7 +61,7 @@ where set_value.set(invite.clone()); on_submit(invite); } - class="my-8" + class="my-8 mx-auto flex aspect-square w-4/5" /> };