Skip to content

Commit 768d927

Browse files
committed
Add better comment
1 parent 5bb4b9d commit 768d927

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

site/src/pages/TemplatePage/TemplateEmbedPage/TemplateEmbedPage.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,10 @@ export const TemplateEmbedPageView: FC<{
142142
<Box
143143
display="flex"
144144
height={{
145-
// 80px is the vertical padding of the content area
146-
// 36px is from the status bar from the bottom
145+
// 80px is the vertical padding of the content area 36px is from
146+
// the status bar from the bottom We want to use the vh unit since
147+
// it will be sticky to the screen and not relative to the parent
148+
// layout
147149
height: "calc(100vh - (80px + 36px))",
148150
top: 40,
149151
position: "sticky",

0 commit comments

Comments
 (0)