Merge pull request #1613 from gabrielburnworth/staging

Fix firefox drag bug
pull/1615/head
Rick Carlino 2019-12-04 14:52:19 -06:00 committed by GitHub
commit a94c666d76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 3 deletions

View File

@ -312,6 +312,15 @@
opacity: 1;
}
}
.step-block {
display: flex;
padding: 0;
.step-block-drag {
width: 100%;
padding: 0.2rem 0.8rem;
line-height: 3rem;
}
}
&.quick-del {
&:hover {
background: lighten($red, 10%) !important;
@ -334,6 +343,8 @@
float: right;
font-size: 1.4rem !important;
padding-left: 1rem;
line-height: 3rem;
pointer-events: none;
}
.fb-toggle-button {

View File

@ -29,10 +29,12 @@ export function StepButton({ children, step, color, dispatch, current, index }:
intent="step_splice"
draggerId={NULL_DRAGGER_ID}>
<button draggable={true}
className={`fb-button full-width block ${color}`}
className={`fb-button full-width block step-block ${color}`}
onClick={stepClick(dispatch, step, current, index)}>
{children}
<i className="fa fa-arrows block-control" />
<div className="step-block-drag">
{children}
<i className="fa fa-arrows block-control" />
</div>
</button>
</StepDragger>
</div>