change SizeSelector size

This commit is contained in:
Sanster 2022-02-06 22:06:07 +08:00
parent c81fc0ecfc
commit 8ae3d8a42c
2 changed files with 3 additions and 3 deletions

View File

@ -659,7 +659,7 @@ export default function Editor(props: EditorProps) {
className="absolute bg-black backdrop-blur backdrop-filter bg-opacity-10 rounded-xl"
style={{
height: '58px',
width: '700px',
width: '600px',
zIndex: -1,
marginLeft: '-1px',
}}

View File

@ -16,7 +16,7 @@ export default function SizeSelector(props: SizeSelectorProps) {
const getSizeShowName = (size: string) => {
if (size === 'Original') {
return `${originalWidth}x${originalHeight}(${size})`
return `${originalWidth}x${originalHeight}`
}
const length: number = parseInt(size, 10)
const longSide: number =
@ -36,7 +36,7 @@ export default function SizeSelector(props: SizeSelectorProps) {
}
return (
<div className="w-52">
<div className="w-32">
<Listbox value={value} onChange={onChange}>
<div className="relative">
<Listbox.Options