Skip to content

Commit

Permalink
#39 Let grid scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
angel-git committed Oct 16, 2023
1 parent 9655953 commit 96954e3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/routes/stash/grid/grid.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,10 @@
{#if isNewItemModalOpen}
<NewItemModal {grid} allItems={bsgItems} onClose={() => (isNewItemModalOpen = false)} />
{/if}
<div class="grid" style={`grid-template-columns: repeat(${sizeX}, 64px); width: ${sizeX * 64}px;`}>
<div
class="grid"
style={`grid-template-columns: repeat(${sizeX}, 64px); width: ${sizeX * 64 + 20}px;`}
>
{#each orderedItems as item}
<div class="grid-item">
{#if item}
Expand Down Expand Up @@ -189,6 +192,8 @@
.grid {
display: grid;
margin: 16px auto;
max-height: calc(100vh - 300px);
overflow-y: auto;
}
.grid-item {
Expand Down

0 comments on commit 96954e3

Please sign in to comment.