Skip to content

Commit

Permalink
update display of DispayTable
Browse files Browse the repository at this point in the history
  • Loading branch information
molotgor committed Jul 4, 2024
1 parent 5a95337 commit 5b68c38
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
5 changes: 4 additions & 1 deletion src/components/JSONViewer/TreePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@ const TreePanel = ({
? 'expanded'
: null,
treeNode.id === JSONViewerStore.selectedTreeNode.id ? 'selected' : null,
)}>
)}
style={{
marginBottom: open && viewType === TreeViewType.DISPLAY_TABLE ? '5px' : undefined,
}}>
<div className='leafWrapper'>
<div style={{ width: `${20 * nest + (complexFields.length === 0 ? 23 : 0)}px` }} />
{((complexFields.length > 0 && viewType === TreeViewType.EVENTS_LIST) ||
Expand Down
17 changes: 2 additions & 15 deletions src/styles/jupyter.scss
Original file line number Diff line number Diff line change
Expand Up @@ -164,24 +164,11 @@

th,td {
display: table-cell;
}

td {
text-align: right;
}

td:first-child {
text-align: left;
}

tr:hover {
td.incorrect {
background-color: darken($failedBackgroundColor, 10px);
}
}

td.incorrect {
background-color: $failedBackgroundColor;
th {
background-color: $secondaryLightTextColor;
}
}
}

0 comments on commit 5b68c38

Please sign in to comment.