Skip to content

Commit

Permalink
Split scrolling for navbar and preview window
Browse files Browse the repository at this point in the history
  • Loading branch information
gazayas committed Feb 10, 2024
1 parent ee2e723 commit bd8c0f7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions app/assets/builds/showcase.css
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,10 @@ pre {
padding-bottom: 0.5rem;
}

.sc-pb-24 {
padding-bottom: 6rem;
}

.sc-pl-4 {
padding-left: 1rem;
}
Expand Down
6 changes: 3 additions & 3 deletions app/views/showcase/engine/_root.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<main class="sc-flex sc-flex-wrap dark:sc-bg-neutral-900 dark:sc-text-white" aria-labelledby="showcase_main_title">
<main class="sc-flex sc-flex-wrap dark:sc-bg-neutral-900 dark:sc-text-white h-screen overflow-hidden" aria-labelledby="showcase_main_title">
<section class="sc-grid sc-grid-cols-12 sc-w-full">
<nav class="sc-col-span-3 xl:sc-col-span-2 sc-h-full sc-border-0 sc-border-r sc-border-solid sc-border-gray-200">
<nav class="sc-col-span-3 xl:sc-col-span-2 sc-border-0 sc-border-r sc-border-solid sc-border-gray-200 h-screen overflow-y-auto sc-pb-24">
<header class="sc-flex sc-items-baseline sc-pt-5 sc-pb-2 sc-pl-4">
<h1 id="showcase_main_title" class="sc-font-black sc-text-2xl sc-m-0">
<%= link_to "Showcase", root_url, class: "sc-link" %>
Expand All @@ -15,7 +15,7 @@
<%= render Showcase::Path.tree %>
</nav>

<section class="sc-col-span-9 xl:sc-col-span-10 sc-w-full sc-min-h-screen sc-p-12 sc-pt-7">
<section class="sc-col-span-9 xl:sc-col-span-10 sc-w-full sc-min-h-screen h-screen overflow-y-auto sc-px-8 sc-pt-5 sc-pb-24">
<%= yield %>
</section>
</section>
Expand Down

0 comments on commit bd8c0f7

Please sign in to comment.