updated the distance between icons and labels of FE

pull/4088/head
lianahus 1 year ago committed by Aniket
parent 3762427319
commit a0d59a65b3
  1. 3
      apps/debugger/src/app/debugger.ts
  2. 2
      libs/remix-ui/tree-view/src/lib/tree-view-item/tree-view-item.tsx
  3. 2
      libs/remix-ui/workspace/src/lib/components/file-render.tsx

@ -27,5 +27,4 @@ export class DebuggerClientApi extends DebuggerApiMixin(PluginClient) {
web3: () => any // returns an instance of web3.js
onStartDebugging: (debuggerBackend: any) => void // called when debug starts
onStopDebugging: () => void // called when debug stops
}
}

@ -22,7 +22,7 @@ export const TreeViewItem = (props: TreeViewItemProps) => {
{children && showIcon ? (
<div className={isExpanded ? `pl-2 ${iconY}` : `pl-2 ${iconX} caret caret_tv`} style={{visibility: children ? 'visible' : 'hidden'}}></div>
) : icon ? (
<div className={`pr-3 pl-2 ${icon} caret caret_tv`}></div>
<div className={`pr-2 pl-2 ${icon} caret caret_tv`}></div>
) : null}
<span className="w-100 pl-2">{label}</span>
</div>

@ -86,7 +86,7 @@ export const FileRender = (props: RenderFileProps) => {
<TreeViewItem
id={`treeViewItem${file.path}`}
iconX="pr-3 fa fa-folder"
iconY={props.expandPath.includes(file.path) ? 'pr-3 fa fa-folder-open' : 'pr-3 fa fa-folder'}
iconY={props.expandPath.includes(file.path) ? 'pr-0 fa fa-folder-open' : 'pr-0 fa fa-folder'}
key={`${file.path + props.index}`}
label={
<>

Loading…
Cancel
Save