Skip to content

Commit

Permalink
explorer: fix double scrollbar issue
Browse files Browse the repository at this point in the history
  • Loading branch information
deuch13 committed May 15, 2024
1 parent 9a44505 commit 68324d9
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 2 deletions.
2 changes: 1 addition & 1 deletion explorer/src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
data-sveltekit-preload-code="viewport"
data-sveltekit-preload-data="hover"
>
<div>%sveltekit.body%</div>
<div class="app-container">%sveltekit.body%</div>
</body>
</html>
1 change: 0 additions & 1 deletion explorer/src/lib/components/blocks-card/BlocksCard.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.blocks-card__table,
.blocks-card__list {
max-height: 70dvh;
overflow-y: auto;
}
3 changes: 3 additions & 0 deletions explorer/src/lib/components/data-card/DataCard.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
.data-card {
padding: 1rem 0;
display: flex;
flex-direction: column;
overflow: hidden;
}

.data-card__loading-notice {
Expand Down
7 changes: 7 additions & 0 deletions explorer/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,10 @@
</footer>

<Tooltip id="main-tooltip" />

<style>
.explorer {
display: flex;
flex-direction: column;
}
</style>
8 changes: 8 additions & 0 deletions explorer/src/routes/blocks/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,11 @@
loading={isLoading}
/>
</section>

<style>
.blocks {
display: flex;
flex-direction: column;
overflow: hidden;
}
</style>
6 changes: 6 additions & 0 deletions explorer/src/style/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,9 @@ svg {
padding: 0 1.25rem;
}
}

.app-container {
display: flex;
flex-direction: column;
height: 100dvh;
}

0 comments on commit 68324d9

Please sign in to comment.