Skip to content

Commit aa6be38

Browse files
authored
Make OpenAPI tabs list scrollable if overflowing (#2848)
1 parent 6157583 commit aa6be38

File tree

1 file changed

+5
-3
lines changed
  • packages/gitbook/src/components/DocumentView/OpenAPI

1 file changed

+5
-3
lines changed

packages/gitbook/src/components/DocumentView/OpenAPI/style.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@
463463
}
464464

465465
.openapi-section-header-content {
466-
@apply flex-1 text-base gap-1.5 flex w-full font-medium text-tint-strong;
466+
@apply flex-1 overflow-hidden text-base gap-1.5 flex w-full font-medium text-tint-strong;
467467
}
468468

469469
.openapi-section-header-controls {
@@ -500,11 +500,13 @@
500500

501501
/* Tabs */
502502
.openapi-tabs-list {
503-
@apply flex flex-row gap-3 py-1.5 px-2.5 border-b border-tint-subtle w-full;
503+
@apply flex flex-row gap-1.5 py-1.5 px-2.5 border-b border-tint-subtle w-full overflow-x-scroll;
504+
scrollbar-width: none;
505+
-ms-overflow-style: none;
504506
}
505507

506508
.openapi-tabs-tab {
507-
@apply hover:bg-primary-hover font-mono font-normal tabular-nums hover:text-primary cursor-pointer transition-all relative text-[0.813rem] text-tint px-1 border border-transparent rounded;
509+
@apply hover:bg-primary-hover whitespace-nowrap font-mono font-normal tabular-nums hover:text-primary cursor-pointer transition-all relative text-[0.813rem] text-tint px-1 border border-transparent rounded;
508510
}
509511

510512
.openapi-tabs-tab[aria-selected='true'] {

0 commit comments

Comments
 (0)