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

Fix TOC left and right height #11

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
8 changes: 8 additions & 0 deletions app/assets/stylesheets/application.tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,12 @@
.display_block {
display: block;
}

.toc-right-height {
height: calc(100dvh - 10rem);
}

.toc-left-height {
height: calc(100dvh - 6rem);
}
}
2 changes: 1 addition & 1 deletion app/concepts/cell/documentation/toc_left.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="lg:pt-10 lg:pl-5 xl:pl-20 p-10 pl-20 text-white leading-10 space-y-1 h-full overflow-auto">
<div class="lg:pt-10 lg:pl-5 xl:pl-20 p-10 pl-20 text-white leading-10 space-y-1 toc-left-height overflow-y-auto">
<% separator_after = {4 => true, 8 => true}
separator_class = "border-t-[1px] border-t-light-purple"
%>
Expand Down
2 changes: 1 addition & 1 deletion app/concepts/cell/documentation/toc_right.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="display_none bg-white p-5 w-56 shrink-0 text-bg-blue overflow-y-scroll top-22" id="<%= css_id %>">
<div class="display_none bg-white p-5 w-56 shrink-0 text-bg-blue overflow-y-auto top-22 toc-right-height" id="<%= css_id %>">
<h4 class="font-base font-bold leading-10 pl-2">
<%= h2.title %>
</h4>
Expand Down