css optimize

This commit is contained in:
Qing
2023-01-07 09:52:11 +08:00
parent a97f48220d
commit a7382807be
5 changed files with 17 additions and 9 deletions

View File

@@ -36,9 +36,7 @@ const ImageResizeScale = () => {
className="sub-setting-block"
title="Resize"
titleSuffix={
<div
style={{ width: 86 }}
>{`(${scaledWidth()}x${scaledHeight()})`}</div>
<div className="resize-title-tile">{` ${scaledWidth()}x${scaledHeight()}`}</div>
}
desc="Resize the image before inpainting, the area outside the mask will not lose quality."
input={

View File

@@ -83,3 +83,9 @@
padding-top: 10px;
}
}
.resize-title-tile {
width: 86px;
font-size: 0.5rem;
color: var(--text-color-gray);
}

View File

@@ -19,7 +19,6 @@ import ImageResizeScale from './ImageResizeScale'
const INPUT_WIDTH = 30
// TODO: 添加收起来的按钮
const SidePanel = () => {
const [open, toggleOpen] = useToggle(true)
const [setting, setSettingState] = useRecoilState(settingState)