Skip to content

Commit

Permalink
[improvements] LeftSidebar Inspector (ToolJet#4064)
Browse files Browse the repository at this point in the history
* fixes: padding for inspector json

* fixes: padding for inspector json

* fixes: padding for inspector json

* adds {{}}: to copying the abs path
  • Loading branch information
arpitnath authored Sep 20, 2022
1 parent 410ec82 commit fb2540b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/Editor/LeftSidebar/SidebarInspector.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export const LeftSidebarInspector = ({
/>
<div
{...content}
className={`card popover ${open || popoverPinned ? 'show' : 'hide'}`}
className={`card popover left-sidebar-inspector ${open || popoverPinned ? 'show' : 'hide'}`}
style={{ resize: 'horizontal', maxWidth: '60%', minWidth: '422px' }}
>
<SidebarPinnedButton
Expand Down
6 changes: 6 additions & 0 deletions frontend/src/_styles/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,12 @@ button {
border-width: 0px 0px 1px 0px;
}
}

.left-sidebar-inspector {
.card-body {
padding: 1rem 0rem 1rem 1rem;
}
}
}

.editor-sidebar {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/_ui/JSONTreeViewer/JSONTreeViewer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export class JSONTreeViewer extends React.Component {

buildMap(data);

return computeAbsolutePath(path);
return `{{${computeAbsolutePath(path)}}}`;
};

render() {
Expand Down

0 comments on commit fb2540b

Please sign in to comment.