diff --git a/.changeset/empty-radios-trade.md b/.changeset/empty-radios-trade.md new file mode 100644 index 0000000000..6292a72b33 --- /dev/null +++ b/.changeset/empty-radios-trade.md @@ -0,0 +1,5 @@ +--- +'gitbook': patch +--- + +Fix OpenAPI path overflow on mobile diff --git a/packages/gitbook/src/components/DocumentView/OpenAPI/style.css b/packages/gitbook/src/components/DocumentView/OpenAPI/style.css index 0ee2a8b143..dd0ea9ebca 100644 --- a/packages/gitbook/src/components/DocumentView/OpenAPI/style.css +++ b/packages/gitbook/src/components/DocumentView/OpenAPI/style.css @@ -397,7 +397,9 @@ /* Path */ .openapi-path { - @apply flex items-start text-sm gap-2 h-fit min-w-0 max-w-full; + @apply flex items-start text-sm gap-2 h-fit overflow-x-auto min-w-0 max-w-full; + scrollbar-width: none; + -ms-overflow-style: none; } .openapi-path-variable { @@ -415,6 +417,7 @@ .openapi-path-title { @apply flex-1 relative font-normal text-left font-mono text-tint-strong/10; @apply py-0.5 px-1 rounded hover:bg-tint cursor-pointer transition-colors; + @apply whitespace-nowrap md:whitespace-normal; } .openapi-path-title[data-deprecated="true"] {