Skip to content

Commit

Permalink
explorer: fix layout design issues
Browse files Browse the repository at this point in the history
  • Loading branch information
deuch13 committed Jun 25, 2024
1 parent 516fc2e commit 0d0ca18
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
1 change: 1 addition & 0 deletions explorer/src/lib/components/table/Table.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
position: sticky;
top: 0;
z-index: 1;
text-wrap: nowrap;
}

.table__data-cell {
Expand Down
6 changes: 3 additions & 3 deletions explorer/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@
.chain-info {
display: flex;
flex-wrap: wrap;
gap: 1.875rem;
gap: 1.25rem;
}
}
@media (min-width: 1024px) {
@media (min-width: 1780px) {
.tables {
flex-direction: row;
gap: 1.875rem;
gap: 1.25rem;
}
:global(.tables-layout) {
Expand Down
4 changes: 2 additions & 2 deletions explorer/src/routes/__tests__/__snapshots__/page.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`home page > should render the home page, start polling for the latest chain info and stop the polling when the component is destroyed 1`] = `
<section
class="chain-info svelte-m0gc0x"
class="chain-info svelte-1ayc05m"
>
<div
class="statistics-panel"
Expand Down Expand Up @@ -1001,7 +1001,7 @@ exports[`home page > should render the home page, start polling for the latest c

exports[`home page > should render the home page, start polling for the latest chain info and stop the polling when the component is destroyed 2`] = `
<section
class="chain-info svelte-m0gc0x"
class="chain-info svelte-1ayc05m"
>
<div
class="statistics-panel"
Expand Down
12 changes: 8 additions & 4 deletions explorer/src/style/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ html,
body {
width: 100%;
height: 100%;
max-width: 1920px;
margin: 0 auto;
}

html {
Expand All @@ -62,6 +64,10 @@ svg {
fill: currentColor;
}

.explorer-badge {
min-width: 100px;
}

.mobile-hidden {
display: block;
}
Expand All @@ -74,7 +80,9 @@ svg {
body {
padding: 0 1.25rem;
}
}

@media (max-width: 1024px) {
.mobile-hidden {
display: none;
}
Expand All @@ -83,7 +91,3 @@ svg {
display: block;
}
}

.explorer-badge {
min-width: 100px;
}

0 comments on commit 0d0ca18

Please sign in to comment.