Skip to content

Commit

Permalink
fix: capped networks view grid height to 70vh (#1701)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomiir committed Jan 4, 2024
1 parent 5b6b17e commit 080d222
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/scaffold/src/views/w3m-networks-view/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ import { customElement } from '@web3modal/ui'
import { LitElement, html } from 'lit'
import { state } from 'lit/decorators.js'
import { ifDefined } from 'lit/directives/if-defined.js'
import styles from './styles.js'

@customElement('w3m-networks-view')
export class W3mNetworksView extends LitElement {
public static override styles = styles
// -- Members ------------------------------------------- //
private unsubscribe: (() => void)[] = []

Expand Down
12 changes: 12 additions & 0 deletions packages/scaffold/src/views/w3m-networks-view/styles.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { css } from 'lit'

export default css`
:host > wui-grid {
max-height: 360px;
overflow: auto;
}
wui-grid::-webkit-scrollbar {
display: none;
}
`

2 comments on commit 080d222

@vercel
Copy link

@vercel vercel bot commented on 080d222 Jan 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 080d222 Jan 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.