@@ -39,16 +39,19 @@ export const SchemaRow: React.FunctionComponent<ISchemaRow> = ({ node, treeStore
3939 const validationCount = Object . keys ( nodeValidations ) . length ;
4040
4141 const requiredElem = (
42- < span className = { cn ( required ? 'font-semibold ' : 'text-darken-7' ) } >
42+ < span className = { cn ( required ? 'font-medium ' : 'text-darken-7 dark:text-lighten-6 ' ) } >
4343 { required ? 'required' : 'optional' }
4444 { validationCount ? `+${ validationCount } ` : '' }
4545 </ span >
4646 ) ;
4747
4848 return (
49- < div className = "flex-1 flex items-center" style = { { marginLeft : ROW_OFFSET , marginRight : ROW_OFFSET } } >
49+ < div
50+ className = "flex-1 flex items-center overflow-hidden"
51+ style = { { marginLeft : ROW_OFFSET , marginRight : ROW_OFFSET } }
52+ >
5053 < div
51- className = "flex flex-1 items-center text-sm leading-tight w-full h-full relative"
54+ className = "flex flex-1 items-center text-sm leading-tight w-full h-full relative overflow-hidden "
5255 style = { {
5356 marginLeft : ICON_DIMENSION * node . level , // offset for spacing
5457 } }
@@ -73,10 +76,13 @@ export const SchemaRow: React.FunctionComponent<ISchemaRow> = ({ node, treeStore
7376
7477 { schemaNode . divider && (
7578 < div className = "flex items-center w-full absolute" style = { { top : - 9 , height : 1 } } >
76- < div className = "font-medium text-darken-7 pr-2 uppercase text-xs" style = { { marginLeft : - 10 } } >
79+ < div
80+ className = "font-medium text-darken-7 dark:text-lighten-7 pr-2 uppercase text-xs"
81+ style = { { marginLeft : - 10 } }
82+ >
7783 { schemaNode . divider }
7884 </ div >
79- < div className = "flex-1 bg-darken-5" style = { { height : 1 } } />
85+ < div className = "flex-1 bg-darken-5 dark:bg-lighten-5 " style = { { height : 1 } } />
8086 </ div >
8187 ) }
8288
@@ -88,17 +94,21 @@ export const SchemaRow: React.FunctionComponent<ISchemaRow> = ({ node, treeStore
8894 { type === '$ref' ? `[${ $ref } ]` : null }
8995 </ Types >
9096
91- { node . canHaveChildren && < span className = "ml-2 text-darken-7" > { `{${ childrenCount } }` } </ span > }
97+ { node . canHaveChildren && (
98+ < span className = "ml-2 text-darken-7 dark:text-lighten-6" > { `{${ childrenCount } }` } </ span >
99+ ) }
92100
93101 { 'pattern' in schemaNode && schemaNode . pattern ? (
94- < span className = "text-darken-7 ml-2" > (pattern property)</ span >
102+ < span className = "text-darken-7 dark:text-lighten-6 ml-2" > (pattern property)</ span >
95103 ) : null }
96104
97105 { description && (
98106 < Popover
99107 boundary = "window"
100108 interactionKind = "hover"
101- target = { < span className = "ml-2 text-darken-7" > { description } </ span > }
109+ className = "overflow-hidden JSV--Popover"
110+ targetClassName = "overflow-hidden block"
111+ target = { < div className = "ml-2 text-darken-7 dark:text-lighten-6 truncate" > { description } </ div > }
102112 content = {
103113 < div className = "p-5" style = { { maxHeight : 500 , maxWidth : 400 } } >
104114 < MarkdownViewer markdown = { description } />
0 commit comments