Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Fix horizontal scroll for tablist

Terry Suttond500165f5e18
diff --git a/apps/docs/styles/main.scss b/apps/docs/styles/main.scss
index 46fa20e89a5..db00f8c12e2 100644
--- a/apps/docs/styles/main.scss
+++ b/apps/docs/styles/main.scss
@@ -238,3 +238,18 @@ article p code {
background: none;
border: none;
}
+
+// prevent horizontal scroll on mobile for tablist tab headers
+div[role='tablist'] {
+ @media screen and (min-width: 320px) {
+ max-width: 320px;
+ }
+
+ @media screen and (min-width: 600px) {
+ max-width: 520px;
+ }
+
+ @media screen and (min-width: 769px) {
+ max-width: 620px;
+ }
+}