From 1386c261474a1b2aeb85eb2c3fe6ac1bf650aa04 Mon Sep 17 00:00:00 2001 From: Bryan Linda <48506502+blindaa121@users.noreply.github.com> Date: Thu, 28 Mar 2024 06:53:58 -0700 Subject: [PATCH] Remove scrollbar width for Tab components (#785) --- .../src/theme/ApiTabs/_ApiTabs.scss | 1 + .../src/theme/DiscriminatorTabs/_DiscriminatorTabs.scss | 1 + .../src/theme/MimeTabs/_MimeTabs.scss | 1 + .../src/theme/OperationTabs/_OperationTabs.scss | 1 + .../src/theme/SchemaTabs/_SchemaTabs.scss | 1 + 5 files changed, 5 insertions(+) diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/ApiTabs/_ApiTabs.scss b/packages/docusaurus-theme-openapi-docs/src/theme/ApiTabs/_ApiTabs.scss index a20422ccc..efb276754 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/ApiTabs/_ApiTabs.scss +++ b/packages/docusaurus-theme-openapi-docs/src/theme/ApiTabs/_ApiTabs.scss @@ -85,6 +85,7 @@ overflow-y: hidden; overflow-x: scroll; scroll-behavior: smooth; + scrollbar-width: none; } .openapi-tabs__response-list-container::-webkit-scrollbar { diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/DiscriminatorTabs/_DiscriminatorTabs.scss b/packages/docusaurus-theme-openapi-docs/src/theme/DiscriminatorTabs/_DiscriminatorTabs.scss index 275ab1218..158853f81 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/DiscriminatorTabs/_DiscriminatorTabs.scss +++ b/packages/docusaurus-theme-openapi-docs/src/theme/DiscriminatorTabs/_DiscriminatorTabs.scss @@ -59,6 +59,7 @@ overflow-y: hidden; overflow-x: scroll; scroll-behavior: smooth; + scrollbar-width: none; } .openapi-tabs__discriminator-list-container::-webkit-scrollbar { diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/MimeTabs/_MimeTabs.scss b/packages/docusaurus-theme-openapi-docs/src/theme/MimeTabs/_MimeTabs.scss index c42cfa930..d2a459b6f 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/MimeTabs/_MimeTabs.scss +++ b/packages/docusaurus-theme-openapi-docs/src/theme/MimeTabs/_MimeTabs.scss @@ -45,6 +45,7 @@ overflow-y: hidden; overflow-x: scroll; scroll-behavior: smooth; + scrollbar-width: none; &::-webkit-scrollbar { display: none; diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/OperationTabs/_OperationTabs.scss b/packages/docusaurus-theme-openapi-docs/src/theme/OperationTabs/_OperationTabs.scss index 9e955de85..716839a99 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/OperationTabs/_OperationTabs.scss +++ b/packages/docusaurus-theme-openapi-docs/src/theme/OperationTabs/_OperationTabs.scss @@ -44,6 +44,7 @@ overflow-y: hidden; overflow-x: scroll; scroll-behavior: smooth; + scrollbar-width: none; &::-webkit-scrollbar { display: none; diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/SchemaTabs/_SchemaTabs.scss b/packages/docusaurus-theme-openapi-docs/src/theme/SchemaTabs/_SchemaTabs.scss index 8bd5ba269..437596d33 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/SchemaTabs/_SchemaTabs.scss +++ b/packages/docusaurus-theme-openapi-docs/src/theme/SchemaTabs/_SchemaTabs.scss @@ -42,6 +42,7 @@ overflow-y: hidden; overflow-x: scroll; scroll-behavior: smooth; + scrollbar-width: none; &::-webkit-scrollbar { display: none;