Skip to content

Commit

Permalink
fix network summary columns
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkNerdi committed Apr 30, 2024
1 parent 93fe78a commit 0ff70f3
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,18 @@
import { networks } from '@core/network'
export let account: IAccountState
const GRID_COLS = {
0: 'grid-cols-1',
1: 'grid-cols-2',
2: 'grid-cols-3',
3: 'grid-cols-4',
}
</script>

<Pane
classes="
w-full flex shrink-0 grid {$networks.length > 0
? $networks.length > 1
? 'grid-cols-4'
: 'grid-cols-3'
: 'grid-cols-2'}
w-full flex shrink-0 grid {GRID_COLS[$networks.length] ?? GRID_COLS[3]}
bg-surface dark:bg-surface-dark
border border-solid border-stroke dark:border-stroke-dark
divide-x divide-solid divide-stroke dark:divide-stroke-dark
Expand Down

0 comments on commit 0ff70f3

Please sign in to comment.