mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-16 15:45:13 +00:00
Fix schema title display stripping spaces (#4120)
This commit is contained in:
@@ -233,7 +233,7 @@
|
||||
}
|
||||
|
||||
.openapi-schema-type {
|
||||
@apply text-tint select-text text-[0.813rem] font-mono [word-spacing:-0.25rem];
|
||||
@apply text-tint select-text text-[0.813rem] font-mono [word-spacing:-0.25rem] whitespace-normal;
|
||||
}
|
||||
|
||||
.openapi-schema-type:only-child {
|
||||
|
||||
@@ -306,7 +306,7 @@ export function getSchemaTitle(
|
||||
|
||||
// Only add the title if it's an object (no need for the title of a string, number, etc.)
|
||||
if (type === 'object' && schema.title) {
|
||||
type += ` · ${schema.title.replaceAll(' ', '')}`;
|
||||
type += ` · ${schema.title}`;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user