change style

This commit is contained in:
Sanster 2022-02-06 20:56:40 +08:00
parent 028a63ea34
commit df53f81032
3 changed files with 87 additions and 73 deletions

View File

@ -11,7 +11,7 @@ function App() {
return ( return (
<div className="h-full full-visible-h-safari flex flex-col"> <div className="h-full full-visible-h-safari flex flex-col">
<header className="absolute z-10 flex px-5 pt-3 justify-center sm:justify-between items-center sm:items-start"> <header className="absolute z-10 flex w-full p-2 justify-center sm:justify-between items-center sm:items-start bg-white backdrop-blur backdrop-filter bg-opacity-30">
{file ? ( {file ? (
<Button <Button
icon={<ArrowLeftIcon className="w-6 h-6" />} icon={<ArrowLeftIcon className="w-6 h-6" />}

View File

@ -561,14 +561,15 @@ export default function Editor(props: EditorProps) {
/> />
)} )}
<div
className="fixed w-full bottom-0 flex items-center justify-center"
style={{ height: '90px' }}
>
<div <div
className={[ className={[
'flex items-center w-full max-w-5xl', 'flex items-center justify-center space-x-6',
'space-x-3 sm:space-x-5', '',
'pb-6', // 'bg-black backdrop-blur backdrop-filter bg-opacity-10',
minScale !== 1
? 'absolute bottom-0 justify-evenly'
: 'relative justify-evenly sm:justify-between',
].join(' ')} ].join(' ')}
> >
<SizeSelector <SizeSelector
@ -635,6 +636,19 @@ export default function Editor(props: EditorProps) {
{undefined} {undefined}
</Button> </Button>
</div> </div>
<div
className="absolute bg-black backdrop-blur backdrop-filter bg-opacity-10 rounded-xl"
style={{
height: '58px',
width: '680px',
zIndex: -1,
marginLeft: '-1px',
}}
>
{undefined}
</div>
</div>
</div> </div>
</div> </div>
) )

View File

@ -36,15 +36,15 @@ export default function SizeSelector(props: SizeSelectorProps) {
<Listbox value={value} onChange={onChange}> <Listbox value={value} onChange={onChange}>
<div className="relative"> <div className="relative">
<Listbox.Options <Listbox.Options
style={{ top: '-112px' }} style={{ top: '-122px' }}
className="absolute mb-1 w-full overflow-auto text-base bg-black backdrop-blur backdrop-filter bg-opacity-10 rounded-md max-h-60 ring-opacity-50 focus:outline-none sm:text-sm" className="absolute mb-1 w-full overflow-auto text-base bg-opacity-10 bg-black backdrop-blur rounded-md max-h-60 outline-none sm:text-sm"
> >
{sizes.map(size => ( {sizes.map(size => (
<Listbox.Option <Listbox.Option
key={size} key={size}
className={({ active }) => className={({ active }) =>
`${active ? 'bg-black bg-opacity-10' : 'text-gray-900'} `${active ? 'bg-black bg-opacity-10' : 'text-gray-900'}
cursor-default select-none relative py-2 pl-10 pr-4` cursor-default select-none relative py-2 pl-4 pr-4`
} }
value={size} value={size}
> >
@ -57,7 +57,7 @@ export default function SizeSelector(props: SizeSelectorProps) {
> >
{getSizeShowName(size)} {getSizeShowName(size)}
</span> </span>
{selected ? ( {/* {selected ? (
<span <span
className={`${ className={`${
active ? 'text-amber-600' : 'text-amber-600' active ? 'text-amber-600' : 'text-amber-600'
@ -66,7 +66,7 @@ export default function SizeSelector(props: SizeSelectorProps) {
> >
<CheckIcon className="w-5 h-5" aria-hidden="true" /> <CheckIcon className="w-5 h-5" aria-hidden="true" />
</span> </span>
) : null} ) : null} */}
</> </>
)} )}
</Listbox.Option> </Listbox.Option>