Skip to content

Commit ed07206

Browse files
authored
Fix OpenAPI path overflow on mobile (#3018)
1 parent ad94d00 commit ed07206

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.changeset/empty-radios-trade.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'gitbook': patch
3+
---
4+
5+
Fix OpenAPI path overflow on mobile

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

+4-1
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,9 @@
397397

398398
/* Path */
399399
.openapi-path {
400-
@apply flex items-start text-sm gap-2 h-fit min-w-0 max-w-full;
400+
@apply flex items-start text-sm gap-2 h-fit overflow-x-auto min-w-0 max-w-full;
401+
scrollbar-width: none;
402+
-ms-overflow-style: none;
401403
}
402404

403405
.openapi-path-variable {
@@ -415,6 +417,7 @@
415417
.openapi-path-title {
416418
@apply flex-1 relative font-normal text-left font-mono text-tint-strong/10;
417419
@apply py-0.5 px-1 rounded hover:bg-tint cursor-pointer transition-colors;
420+
@apply whitespace-nowrap md:whitespace-normal;
418421
}
419422

420423
.openapi-path-title[data-deprecated="true"] {

0 commit comments

Comments
 (0)