css optimize
This commit is contained in:
parent
a97f48220d
commit
a7382807be
@ -158,7 +158,7 @@ export default function FileManager(props: Props) {
|
||||
return (
|
||||
<Modal
|
||||
onClose={onClose}
|
||||
title={`Files(${photos.length})`}
|
||||
title={`Images (${photos.length})`}
|
||||
className="file-manager-modal"
|
||||
show={show}
|
||||
>
|
||||
|
@ -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={
|
||||
|
@ -83,3 +83,9 @@
|
||||
padding-top: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.resize-title-tile {
|
||||
width: 86px;
|
||||
font-size: 0.5rem;
|
||||
color: var(--text-color-gray);
|
||||
}
|
||||
|
@ -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)
|
||||
|
@ -35,8 +35,8 @@ const Button: React.FC<ButtonProps> = props => {
|
||||
onClick?.()
|
||||
}
|
||||
|
||||
return (
|
||||
<Tooltip content={toolTip}>
|
||||
const renderButton = () => {
|
||||
return (
|
||||
<div
|
||||
role="button"
|
||||
style={style}
|
||||
@ -60,8 +60,13 @@ const Button: React.FC<ButtonProps> = props => {
|
||||
{icon}
|
||||
{children ? <span>{children}</span> : null}
|
||||
</div>
|
||||
</Tooltip>
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
if (toolTip) {
|
||||
return <Tooltip content={toolTip}>{renderButton()}</Tooltip>
|
||||
}
|
||||
return renderButton()
|
||||
}
|
||||
|
||||
Button.defaultProps = {
|
||||
|
Loading…
Reference in New Issue
Block a user