@@ -237,7 +237,7 @@ export default class SchemaTable extends LitElement {
237
237
if ( readorWriteOnly === '🆆' && this . schemaHideWriteOnly === 'true' ) {
238
238
return ;
239
239
}
240
- const dataTypeCss = type . replace ( / \{ | \[ / g, '' ) . substring ( 0 , 4 ) . toLowerCase ( ) ;
240
+ const dataTypeCss = type . replace ( / ┃ . * / g , '' ) . replace ( / [ ^ a - z A - Z 0 - 9 + ] / g, '' ) . substring ( 0 , 4 ) . toLowerCase ( ) ;
241
241
return html `
242
242
< div class = "tr primitive ">
243
243
< div class ="td key ${ deprecated } " style ='padding-left:${ leftPadding } px ' >
@@ -253,10 +253,10 @@ export default class SchemaTable extends LitElement {
253
253
< span style ="font-family: var(--font-mono); "> ${ readorWriteOnly } </ span > </ div >
254
254
< div class ='td key-descr '>
255
255
${ dataType === 'array' ? description : '' }
256
- ${ constraint ? html `< div style ='color: var(--fg2); padding-bottom:3px ; '> < span class ='bold-text '> Constraints:</ span > ${ constraint } </ div > ` : '' }
257
- ${ defaultValue ? html `< div style ='color: var(--fg2); padding-bottom:3px ; '> < span class ='bold-text '> Default:</ span > ${ defaultValue } </ div > ` : '' }
258
- ${ allowedValues ? html `< div style ='color: var(--fg2); padding-bottom:3px ; '> < span class ='bold-text '> Allowed: </ span > ${ allowedValues } </ div > ` : '' }
259
- ${ pattern ? html `< div style ='color: var(--fg2); padding-bottom:3px ; '> < span class ='bold-text '> Pattern:</ span > ${ pattern } </ div > ` : '' }
256
+ ${ constraint ? html `< div style ='display:inline-block; line-break:anywhere; margin-right:8px ; '> < span class ='bold-text '> Constraints: </ span > ${ constraint } </ div > ` : '' }
257
+ ${ defaultValue ? html `< div style ='display:inline-block; line-break:anywhere; margin-right:8px ; '> < span class ='bold-text '> Default: </ span > ${ defaultValue } </ div > ` : '' }
258
+ ${ allowedValues ? html `< div style ='display:inline-block; line-break:anywhere; margin-right:8px ; '> < span class ='bold-text '> Allowed: </ span > ${ allowedValues } </ div > ` : '' }
259
+ ${ pattern ? html `< div style ='display:inline-block; line-break:anywhere; margin-right:8px ; '> < span class ='bold-text '> Pattern: </ span > ${ pattern } </ div > ` : '' }
260
260
${ schemaDescription ? html `< span class ="m-markdown-small "> ${ unsafeHTML ( marked ( schemaDescription ) ) } </ span > ` : '' }
261
261
</ div >
262
262
</ div >
0 commit comments