Fix schema title display stripping spaces (#4120)

This commit is contained in:
Nolann B.
2026-03-17 10:27:56 +01:00
committed by GitHub
parent 4ac29817a2
commit dee52fa80a
2 changed files with 2 additions and 2 deletions
@@ -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 {
+1 -1
View File
@@ -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}`;
}
}
}