Skip to content

Commit

Permalink
fix toggle on Tree's leafs
Browse files Browse the repository at this point in the history
  • Loading branch information
molotgor committed Jul 1, 2024
1 parent 0b16a52 commit 5a95337
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/JSONViewer/TreePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const TreePanel = ({
)}>
<div className='leafWrapper'>
<div style={{ width: `${20 * nest + (complexFields.length === 0 ? 23 : 0)}px` }} />
{((complexFields.length > 0 && TreeViewType.EVENTS_LIST) ||
{((complexFields.length > 0 && viewType === TreeViewType.EVENTS_LIST) ||
viewType === TreeViewType.DISPLAY_TABLE) && (
<div
className={createBemBlock('expand-icon', open ? 'expanded' : 'hidden')}
Expand Down
1 change: 1 addition & 0 deletions src/styles/jupyter.scss
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
@include default-table;
width: 100%;
&-error {
padding: 2px;
font-size: 14px;
color: $failedTextColor;
}
Expand Down

0 comments on commit 5a95337

Please sign in to comment.