Inpainted State Fix

This commit is contained in:
blessedcoolant
2022-03-30 19:14:32 +13:00
parent b282421c98
commit ca9e393989
9 changed files with 13 additions and 20 deletions

View File

@@ -616,9 +616,6 @@ export default function Editor(props: EditorProps) {
)}
<div className="editor-toolkit-panel">
<p className="image-type-tag">
{showOriginal ? 'Original' : 'Inpainted'}
</p>
<SizeSelector
onChange={onSizeLimitChange}
originalWidth={original.naturalWidth}
@@ -657,6 +654,7 @@ export default function Editor(props: EditorProps) {
/>
<Button
icon={<EyeIcon />}
style={showOriginal ? { backgroundColor: 'rgb(255, 190, 0)' } : {}}
onDown={ev => {
ev.preventDefault()
setShowOriginal(() => {