pull/4140/head
lianahus 1 year ago
parent 8645175fd8
commit b15d4560bc
  1. 28
      libs/remix-ui/debugger-ui/src/lib/button-navigator/button-navigator.css
  2. 6
      libs/remix-ui/debugger-ui/src/lib/button-navigator/button-navigator.tsx

@ -2,24 +2,7 @@
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
} }
.stepButtons {
width: 100%;
display: flex;
justify-content: center;
align-items: center;
color: #fff;
}
.stepButtonDisabled {
background-color: #005573;
border-color: #005573;
}
.stepButton:hover {
color: #fff;
background-color: var(--primary);
border-color: #005573;
}
.jumpButtons { .jumpButtons {
width: 100%; width: 100%;
display: flex; display: flex;
@ -28,17 +11,6 @@
color: #fff; color: #fff;
} }
.jumpButtonDisabled {
background-color: var(--gray);
border-color: #005573;
}
.jumButton:hover {
color: #fff;
background-color: #005573;
border-color: #005573;
}
.cursorPointerRemixDebugger { .cursorPointerRemixDebugger {
cursor: pointer; cursor: pointer;
} }

@ -66,8 +66,6 @@ export const ButtonNavigation = ({
} }
const stepBtnStyle = 'd-flex align-items-center justify-content-center btn btn-primary btn-sm stepButton h-75 m-0 p-1' const stepBtnStyle = 'd-flex align-items-center justify-content-center btn btn-primary btn-sm stepButton h-75 m-0 p-1'
const disableStepBtnStyle = 'disabled'
const disableJumpBtnStyle = 'disabled'
const stepMarkupStructure = { const stepMarkupStructure = {
stepOverBackJSX: { stepOverBackJSX: {
markup: ( markup: (
@ -276,7 +274,7 @@ export const ButtonNavigation = ({
return ( return (
<div className="buttons"> <div className="buttons">
<div className="stepButtons btn-group py-1"> <div className="w-100 btn-group py-1">
{Object.keys(stepMarkupStructure).map((x) => ( {Object.keys(stepMarkupStructure).map((x) => (
<CustomTooltip <CustomTooltip
placement={stepMarkupStructure[x].placement} placement={stepMarkupStructure[x].placement}
@ -289,7 +287,7 @@ export const ButtonNavigation = ({
))} ))}
</div> </div>
<div className="jumpButtons btn-group py-1"> <div className="w-100 btn-group py-1">
{Object.keys(jumpMarkupStructure).map((x) => ( {Object.keys(jumpMarkupStructure).map((x) => (
<CustomTooltip <CustomTooltip
placement={jumpMarkupStructure[x].placement} placement={jumpMarkupStructure[x].placement}

Loading…
Cancel
Save