fixing debuger panels' UI

pull/5370/head
lianahus 2 years ago committed by Aniket
parent 349ca70433
commit 5212461d0f
  1. 2
      libs/remix-ui/debugger-ui/src/lib/debugger-ui.css
  2. 4
      libs/remix-ui/debugger-ui/src/lib/vm-debugger/styles/dropdown-panel.css
  3. 17
      libs/remix-ui/debugger-ui/src/lib/vm-debugger/vm-debugger.tsx

@ -18,6 +18,6 @@
overflow-wrap: break-word; overflow-wrap: break-word;
} }
.debuggerPanels { .debuggerPanels {
overflow-y: scroll; overflow-y: auto;
height: fit-content; height: fit-content;
} }

@ -4,10 +4,14 @@
} }
.name { .name {
font-weight: bold; font-weight: bold;
overflow: hidden;
text-overflow: ellipsis;
} }
.nameDetail { .nameDetail {
font-weight: bold; font-weight: bold;
margin-left: 3px; margin-left: 3px;
overflow: hidden;
text-overflow: ellipsis;
} }
.icon { .icon {
margin-right: 5%; margin-right: 5%;

@ -53,7 +53,14 @@ export const VmDebugger = ({ vmDebugger: { registerEvent }, currentBlock, curren
return ( return (
<div id='vmdebugger' className="d-flex"> <div id='vmdebugger' className="d-flex">
<div className='d-flex flex-column px-2 pr-2' style={{ flex: 1 }}> <div
className='d-flex flex-column px-2 pr-2'
style={{
flex: 1,
overflow: "hidden",
textOverflow: "ellipsis"
}}
>
<CallstackPanel className="pb-1" calldata={callStackPanel} /> <CallstackPanel className="pb-1" calldata={callStackPanel} />
<StackPanel className="pb-1" calldata={stackPanel} /> <StackPanel className="pb-1" calldata={stackPanel} />
<MemoryPanel className="pb-1" calldata={memoryPanel} /> <MemoryPanel className="pb-1" calldata={memoryPanel} />
@ -61,7 +68,13 @@ export const VmDebugger = ({ vmDebugger: { registerEvent }, currentBlock, curren
<ReturnValuesPanel className="pb-1" dropdownName='Return Value' calldata={returnValuesPanel || {}} /> <ReturnValuesPanel className="pb-1" dropdownName='Return Value' calldata={returnValuesPanel || {}} />
<GlobalVariables className="pb-1" block={currentBlock} receipt={currentReceipt} tx={currentTransaction} /> <GlobalVariables className="pb-1" block={currentBlock} receipt={currentReceipt} tx={currentTransaction} />
</div> </div>
<div className='d-flex flex-column px-2 pl-2' style={{ flex: 1 }}> <div className='d-flex flex-column px-2 pl-2'
style={{
flex: 1,
overflow: "hidden",
textOverflow: "ellipsis"
}}
>
<FullStoragesChangesPanel className="pb-1" calldata={fullStoragesChangesPanel} /> <FullStoragesChangesPanel className="pb-1" calldata={fullStoragesChangesPanel} />
<CalldataPanel className="pb-1" calldata={calldataPanel} /> <CalldataPanel className="pb-1" calldata={calldataPanel} />
</div> </div>

Loading…
Cancel
Save