Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@ const SchemaNode: FC<SchemaNodeProps> = ({
}

const handleMouseEnter = () => {
if(!readOnly) return
if(readOnly) return
if (advancedEditing || isAddingNewField) return
setHoveringPropertyDebounced(path.join('.'))
}

const handleMouseLeave = () => {
if(!readOnly) return
if(readOnly) return
if (advancedEditing || isAddingNewField) return
setHoveringPropertyDebounced(null)
}
Expand All @@ -95,7 +95,7 @@ const SchemaNode: FC<SchemaNodeProps> = ({
<div className={classNames('relative z-10', indentPadding[depth])}>
{depth > 0 && hasChildren && (
<div className={classNames(
'flex items-center absolute top-0 w-5 h-7 px-0.5 z-10 bg-background-section-burn',
'absolute top-0 z-10 flex h-7 w-5 items-center bg-background-section-burn px-0.5',
indentLeft[depth - 1],
)}>
<button
Expand Down Expand Up @@ -140,8 +140,8 @@ const SchemaNode: FC<SchemaNodeProps> = ({
</div>

<div className={classNames(
'flex justify-center w-5 absolute z-0',
schema.description ? 'h-[calc(100%-3rem)] top-12' : 'h-[calc(100%-1.75rem)] top-7',
'absolute z-0 flex w-5 justify-center',
schema.description ? 'top-12 h-[calc(100%-3rem)]' : 'top-7 h-[calc(100%-1.75rem)]',
indentLeft[depth],
)}>
<Divider
Expand Down
Loading