Skip to content

Commit a37f3cd

Browse files
committed
Fix TOC left and right height
1 parent a411bb2 commit a37f3cd

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

app/assets/stylesheets/application.tailwind.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,12 @@
6767
.display_block {
6868
display: block;
6969
}
70+
71+
.toc-right-height {
72+
height: calc(100dvh - 10rem);
73+
}
74+
75+
.toc-left-height {
76+
height: calc(100dvh - 6rem);
77+
}
7078
}

app/concepts/cell/documentation/toc_left.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<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">
1+
<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">
22
<% separator_after = {4 => true, 8 => true}
33
separator_class = "border-t-[1px] border-t-light-purple"
44
%>

app/concepts/cell/documentation/toc_right.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="display_none bg-white p-5 w-56 shrink-0 text-bg-blue overflow-y-scroll top-22" id="<%= css_id %>">
1+
<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 %>">
22
<h4 class="font-base font-bold leading-10 pl-2">
33
<%= h2.title %>
44
</h4>

0 commit comments

Comments
 (0)