@bufinance/web3-signin 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bufinance/web3-signin",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Headless cross-app Web3 wallet sign-in for BUFI: EIP-6963 wallet discovery + Supabase signInWithWeb3 (EIP-4361) + Turnstile captcha. Shared by desk-v1 and defi-web-app. Source of truth lives here; both apps consume it.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -88,7 +88,7 @@ const PANEL_CSS = `
|
|
|
88
88
|
.bwp-stack{display:inline-flex;align-items:center;}
|
|
89
89
|
.bwp-stack > * + *{margin-left:-4px;}
|
|
90
90
|
.bwp-stack--chain > * + *{margin-left:-2px;}
|
|
91
|
-
.bwp-glyph{display:inline-flex;border-radius:9999px;transition:opacity .15s;}
|
|
91
|
+
.bwp-glyph{display:inline-flex;flex-shrink:0;border-radius:9999px;transition:opacity .15s;}
|
|
92
92
|
.bwp-glyph--dim{opacity:.55;}
|
|
93
93
|
.bwp-glyph--on{position:relative;z-index:1;}
|
|
94
94
|
|
|
@@ -102,6 +102,10 @@ const PANEL_CSS = `
|
|
|
102
102
|
font-size:14px;color:var(--bwp-ink);transition:background-color .12s;}
|
|
103
103
|
.bwp-menu-item:hover{background:var(--bwp-hover);}
|
|
104
104
|
.bwp-menu-left{display:flex;align-items:center;gap:8px;min-width:0;}
|
|
105
|
+
/* Icons (every child but the trailing label) keep their size when the label
|
|
106
|
+
wraps to two lines — long currency/chain names must not shrink the glyph. */
|
|
107
|
+
.bwp-menu-left > *:not(:last-child){flex-shrink:0;}
|
|
108
|
+
.bwp-menu-left > img{flex-shrink:0;}
|
|
105
109
|
.bwp-menu-check{color:var(--bwp-check);flex-shrink:0;}
|
|
106
110
|
|
|
107
111
|
.bwp-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:16px;}
|
|
@@ -425,7 +429,7 @@ export function WalletPanel({
|
|
|
425
429
|
</Menu>
|
|
426
430
|
|
|
427
431
|
<div className="bwp-pill bwp-pill--bal">
|
|
428
|
-
<span className="bwp-cur-label">{currencyLabel}</span>
|
|
432
|
+
{currencyLabel ? <span className="bwp-cur-label">{currencyLabel}</span> : null}
|
|
429
433
|
{isLoading ? (
|
|
430
434
|
<span style={{ marginLeft: "auto", display: "inline-flex" }}>
|
|
431
435
|
<SpinnerIcon />
|