From 676837b3d99f6f259ff045d4095cb830be6fe402 Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 17 Jun 2021 14:40:48 +0200 Subject: [PATCH] use monospace for memory and stack --- .../debugger-ui/src/lib/vm-debugger/dropdown-panel.tsx | 6 +++--- .../debugger-ui/src/lib/vm-debugger/memory-panel.tsx | 2 +- .../debugger-ui/src/lib/vm-debugger/stack-panel.tsx | 2 +- libs/remix-ui/debugger-ui/src/types/index.ts | 4 +++- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/libs/remix-ui/debugger-ui/src/lib/vm-debugger/dropdown-panel.tsx b/libs/remix-ui/debugger-ui/src/lib/vm-debugger/dropdown-panel.tsx index 0ce016fda4..3abd08fcbb 100644 --- a/libs/remix-ui/debugger-ui/src/lib/vm-debugger/dropdown-panel.tsx +++ b/libs/remix-ui/debugger-ui/src/lib/vm-debugger/dropdown-panel.tsx @@ -7,7 +7,7 @@ import './styles/dropdown-panel.css' export const DropdownPanel = (props: DropdownPanelProps) => { const [calldataObj, dispatch] = useReducer(reducer, initialState) - const { dropdownName, dropdownMessage, calldata, header, loading, extractFunc, formatSelfFunc, registerEvent, triggerEvent, loadMoreEvent, loadMoreCompletedEvent } = props + const { dropdownName, dropdownMessage, calldata, header, loading, extractFunc, formatSelfFunc, registerEvent, triggerEvent, loadMoreEvent, loadMoreCompletedEvent, headStyle, bodyStyle } = props const extractDataDefault: ExtractFunc = (item, parent?) => { const ret: ExtractData = {} @@ -193,14 +193,14 @@ export const DropdownPanel = (props: DropdownPanelProps) => { return (
-
+
{dropdownName}
{header}
-
+
{ state.data && diff --git a/libs/remix-ui/debugger-ui/src/lib/vm-debugger/memory-panel.tsx b/libs/remix-ui/debugger-ui/src/lib/vm-debugger/memory-panel.tsx index b772369ec6..75358e9c07 100644 --- a/libs/remix-ui/debugger-ui/src/lib/vm-debugger/memory-panel.tsx +++ b/libs/remix-ui/debugger-ui/src/lib/vm-debugger/memory-panel.tsx @@ -3,7 +3,7 @@ import DropdownPanel from './dropdown-panel' // eslint-disable-line export const MemoryPanel = ({ calldata }) => { return ( - + ) } diff --git a/libs/remix-ui/debugger-ui/src/lib/vm-debugger/stack-panel.tsx b/libs/remix-ui/debugger-ui/src/lib/vm-debugger/stack-panel.tsx index fcb86b2699..1824a55477 100644 --- a/libs/remix-ui/debugger-ui/src/lib/vm-debugger/stack-panel.tsx +++ b/libs/remix-ui/debugger-ui/src/lib/vm-debugger/stack-panel.tsx @@ -4,7 +4,7 @@ import DropdownPanel from './dropdown-panel' // eslint-disable-line export const StackPanel = ({ calldata }) => { return (
- +
) } diff --git a/libs/remix-ui/debugger-ui/src/types/index.ts b/libs/remix-ui/debugger-ui/src/types/index.ts index 45a26384dc..b968815242 100644 --- a/libs/remix-ui/debugger-ui/src/types/index.ts +++ b/libs/remix-ui/debugger-ui/src/types/index.ts @@ -27,7 +27,9 @@ export interface DropdownPanelProps { registerEvent?: Function, triggerEvent?: Function, loadMoreEvent?: string, - loadMoreCompletedEvent?: string + loadMoreCompletedEvent?: string, + bodyStyle?: React.CSSProperties + headStyle?: React.CSSProperties } export type FormatSelfFunc = (key: string | number, data: ExtractData) => JSX.Element