diff --git a/src/ui/code-blocks/ShelfCodeBlockView.svelte b/src/ui/code-blocks/ShelfCodeBlockView.svelte index 6babdee..cf06213 100644 --- a/src/ui/code-blocks/ShelfCodeBlockView.svelte +++ b/src/ui/code-blocks/ShelfCodeBlockView.svelte @@ -66,8 +66,14 @@ diff --git a/src/ui/components/bookshelf/Bookshelf.svelte b/src/ui/components/bookshelf/Bookshelf.svelte index 5a7ff2c..900a106 100644 --- a/src/ui/components/bookshelf/Bookshelf.svelte +++ b/src/ui/components/bookshelf/Bookshelf.svelte @@ -18,7 +18,6 @@ div.bookshelf { width: 80%; margin: 0 auto; - min-height: 100vh; min-height: calc(bookshelf.$height + bookshelf.$shelf-width); background-image: linear-gradient( color.scale(bookshelf.$color, $lightness: -32%), @@ -52,5 +51,10 @@ display: flex; flex-wrap: wrap; gap: bookshelf.$shelf-width bookshelf.$book-spacing; + + container: bookshelf / inline-size; + @container bookshelf (width < 600px) { + width: 100%; + } }