Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split scrolling for navbar and preview window #81

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading