button tooltip from b90e32886a019e0e55af8d8d6f289312527d2fed

This commit is contained in:
Sanster
2022-05-21 13:04:09 +08:00
committed by Qing
parent 92900933e5
commit 22834a8243
9 changed files with 56 additions and 1 deletions

View File

@@ -731,11 +731,15 @@ export default function Editor(props: EditorProps) {
/>
<div className="editor-toolkit-btns">
<Button
toolTip="Show Full"
tooltipPosition="top"
icon={<ArrowsExpandIcon />}
disabled={scale === minScale && panned === false}
onClick={resetZoom}
/>
<Button
toolTip="Undo"
tooltipPosition="top"
icon={
<svg
width="19"
@@ -754,6 +758,8 @@ export default function Editor(props: EditorProps) {
disabled={disableUndo()}
/>
<Button
toolTip="Show Original"
tooltipPosition="top"
icon={<EyeIcon />}
className={showOriginal ? 'eyeicon-active' : ''}
onDown={ev => {
@@ -774,6 +780,8 @@ export default function Editor(props: EditorProps) {
disabled={renders.length === 0}
/>
<Button
toolTip="Save Image"
tooltipPosition="top"
icon={<DownloadIcon />}
disabled={!renders.length}
onClick={download}
@@ -781,6 +789,8 @@ export default function Editor(props: EditorProps) {
{settings.runInpaintingManually && (
<Button
toolTip="Run Inpainting"
tooltipPosition="top"
icon={
<svg
width="24"