Skip to content

OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.

fix(docs): code block max height (#138)

Thejana Weththasinghe6ae85a1fe8ee
diff --git a/apps/public/app/global.css b/apps/public/app/global.css
index 84d9e40fe..93acb1ad1 100644
--- a/apps/public/app/global.css
+++ b/apps/public/app/global.css
@@ -213,4 +213,12 @@ h1 code, h2 code, h3 code, h4 code, h5 code, h6 code {
border-radius: 0;
font-size: inherit;
border: none;
+}
+
+div[data-radix-scroll-area-viewport] > div[data-radix-scroll-area-content] {
+ max-height: 400px;
+}
+
+div[data-radix-scroll-area-viewport] > div[data-radix-scroll-area-content] pre{
+ max-height: none;
}
\ No newline at end of file