From e00226fffbe4d4dda5a6aaa9fef1a5bcbe27922c 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 f6bad83c9..9f2d76c2b 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/ApiTabs/_ApiTabs.scss +++ b/packages/docusaurus-theme-openapi-docs/src/theme/ApiTabs/_ApiTabs.scss @@ -87,6 +87,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 cf4f2966f..ee511c9c6 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/OperationTabs/_OperationTabs.scss +++ b/packages/docusaurus-theme-openapi-docs/src/theme/OperationTabs/_OperationTabs.scss @@ -47,6 +47,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 bddacbede..f021d6384 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/SchemaTabs/_SchemaTabs.scss +++ b/packages/docusaurus-theme-openapi-docs/src/theme/SchemaTabs/_SchemaTabs.scss @@ -38,6 +38,7 @@ overflow-y: hidden; overflow-x: scroll; scroll-behavior: smooth; + scrollbar-width: none; &::-webkit-scrollbar { display: none;