Skip to content

Commit 2c8647c

Browse files
authored
Add styling to hidescrollbar across browsers (#1628)
1 parent cc7acb6 commit 2c8647c

File tree

6 files changed

+27
-15
lines changed

6 files changed

+27
-15
lines changed

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@web3-onboard/core",
3-
"version": "2.16.1",
3+
"version": "2.16.2-alpha.1",
44
"description": "Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardized spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.",
55
"keywords": [
66
"Ethereum",

packages/core/src/views/account-center/WalletRow.svelte

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
): string {
3232
const [asset] = Object.keys(balance)
3333
return `${
34-
balance[asset].length > 8 ? balance[asset].slice(0, 8) : balance[asset]
34+
balance[asset].length > 7 ? balance[asset].slice(0, 7) : balance[asset]
3535
} ${asset}`
3636
}
3737
@@ -122,20 +122,30 @@
122122
.address-domain {
123123
flex: 1 0 auto;
124124
max-width: 70%;
125-
overflow: scroll;
126125
white-space: nowrap;
127126
font-weight: 600;
128127
color: var(--account-center-maximized-address-color, inherit);
128+
overflow: scroll;
129+
scrollbar-width: none;
130+
-ms-overflow-style: none;
131+
}
132+
.address-domain::-webkit-scrollbar {
133+
display: none;
129134
}
130135
131136
.balance {
132137
flex: 1 1 auto;
133138
max-width: 70%;
134-
overflow: scroll;
135139
white-space: nowrap;
136140
text-align: end;
137141
opacity: 0.4;
138142
transition: color 150ms ease-in-out, background-color 150ms ease-in-out;
143+
overflow: scroll;
144+
scrollbar-width: none;
145+
-ms-overflow-style: none;
146+
}
147+
.balance::-webkit-scrollbar {
148+
display: none;
139149
}
140150
141151
.elipsis-container {
@@ -233,7 +243,7 @@
233243
{/if}
234244
</div>
235245

236-
<!-- ELIPSIS -->
246+
<!-- ELLIPSIS -->
237247
<div class="elipsis-container" class:active={showMenu === address}>
238248
<div
239249
on:click|stopPropagation={() =>

packages/demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"webpack-dev-server": "4.7.4"
2424
},
2525
"dependencies": {
26-
"@web3-onboard/core": "^2.16.1",
26+
"@web3-onboard/core": "^2.16.2-alpha.1",
2727
"@web3-onboard/coinbase": "^2.2.1",
2828
"@web3-onboard/transaction-preview": "^2.0.5",
2929
"@web3-onboard/dcent": "^2.2.4",

packages/hw-common/src/views/AccountSelect.svelte

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -291,10 +291,7 @@
291291
flex-flow: column;
292292
display: flex;
293293
max-height: 51.75rem;
294-
background: var(
295-
--account-select-background-color,
296-
var(--background-color)
297-
);
294+
background: var(--account-select-background-color, var(--background-color));
298295
box-shadow: var(
299296
--account-select-shadow,
300297
var(--onboard-shadow-1, var(--shadow-1))
@@ -322,6 +319,11 @@
322319
);
323320
max-height: 100vh;
324321
overflow: scroll;
322+
scrollbar-width: none;
323+
-ms-overflow-style: none;
324+
}
325+
.account-select-modal-position::-webkit-scrollbar {
326+
display: none;
325327
}
326328
327329
.connect-wallet-header {
@@ -434,7 +436,7 @@
434436
.table-section {
435437
margin-top: unset;
436438
}
437-
439+
438440
.account-select-modal-position {
439441
max-height: unset;
440442
overflow: unset;

packages/react/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@web3-onboard/react",
3-
"version": "2.7.1",
3+
"version": "2.7.2-alpha.1",
44
"description": "A collection of React hooks for integrating Web3-Onboard in to React and Next.js projects. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.",
55
"keywords": [
66
"Ethereum",
@@ -62,7 +62,7 @@
6262
"typescript": "^4.5.5"
6363
},
6464
"dependencies": {
65-
"@web3-onboard/core": "^2.16.1",
65+
"@web3-onboard/core": "^2.16.2-alpha.1",
6666
"@web3-onboard/common": "^2.3.0",
6767
"use-sync-external-store": "1.0.0"
6868
},

packages/vue/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@web3-onboard/vue",
3-
"version": "2.6.1",
3+
"version": "2.6.2-alpha.1",
44
"description": "A collection of Vue Composables for integrating Web3-Onboard in to a Vue or Nuxt project. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardized spec compliant web3 providers for all supported wallets, modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.",
55
"keywords": [
66
"Ethereum",
@@ -63,7 +63,7 @@
6363
"@vueuse/core": "^8.4.2",
6464
"@vueuse/rxjs": "^8.2.0",
6565
"@web3-onboard/common": "^2.3.0",
66-
"@web3-onboard/core": "^2.16.1",
66+
"@web3-onboard/core": "^2.16.2-alpha.1",
6767
"vue-demi": "^0.12.4"
6868
},
6969
"peerDependencies": {

0 commit comments

Comments
 (0)