feat: change mobile editor icons

This commit is contained in:
DIYgod
2023-07-04 20:26:45 +01:00
parent 26c1cffdd6
commit a102083a04
+37 -38
View File
@@ -45,21 +45,53 @@ export const OptionsButton = ({
onClick={() => renderPage(!isRendering)}
>
{isRendering ? (
<i className="icon-[mingcute--eye-close-line] text-xl inline-block w-6 h-6" />
<i className="icon-[mingcute--eye-close-line] text-xl inline-block w-5 h-5" />
) : (
<i className="icon-[mingcute--eye-2-line] text-xl inline-block w-6 h-6" />
<i className="icon-[mingcute--eye-2-line] text-xl inline-block w-5 h-5" />
)}
</div>
<Popover className="relative">
{({ open, close }) => (
<div className="h-6">
<Popover.Button
className={`
group inline-flex items-center rounded-md text-base font-medium hover:text-opacity-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75`}
// onClick={() => {
// setIsOpen(true)
// }}
>
<div className="bg-accent rounded-full cursor-pointer text-white w-6 h-6 flex justify-center items-center">
<i className="icon-[mingcute--settings-6-line] text-xl inline-block w-5 h-5" />
</div>
</Popover.Button>
<Transition
as={Fragment}
enter="transition ease-out duration-200"
enterFrom="opacity-0 transform -translate-x-full"
enterTo="opacity-100 transform translate-x-0"
leave="transition ease-in duration-150"
leaveFrom="opacity-100 transform translate-x-0"
leaveTo="opacity-0 transform -translate-x-full"
>
<Popover.Panel className="fixed bg-slate-50 h-full left-0 top-0 z-30 transform sm:px-0 lg:max-w-3xl">
<div className="overflow-hidden rounded-lg shadow-lg ring-1 ring-black ring-opacity-5 h-full">
{propertiesWidget}
</div>
</Popover.Panel>
</Transition>
</div>
)}
</Popover>
<Menu as="div" className="relative inline-block text-left h-6">
{({ open, close }) => {
return (
<>
<Menu.Button>
<div className="bg-accent rounded-full cursor-pointer text-white w-6 h-6">
<div className="bg-accent rounded-full cursor-pointer text-white w-6 h-6 flex items-center justify-center">
{open ? (
<i className="icon-[mingcute--up-line] text-2xl inline-block w-6 h-6" />
<i className="icon-[mingcute--send-fill] text-2xl inline-block w-5 h-5" />
) : (
<i className="icon-[mingcute--down-line] text-2xl inline-block w-6 h-6" />
<i className="icon-[mingcute--send-line] text-2xl inline-block w-5 h-5" />
)}
</div>
</Menu.Button>
@@ -162,39 +194,6 @@ export const OptionsButton = ({
)
}}
</Menu>
<Popover className="relative">
{({ open, close }) => (
<div className="h-6">
<Popover.Button
className={`
group inline-flex items-center rounded-md text-base font-medium hover:text-opacity-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75`}
// onClick={() => {
// setIsOpen(true)
// }}
>
<div className="bg-accent rounded-full cursor-pointer text-white w-6 h-6 flex justify-center items-center">
<i className="icon-[mingcute--attachment-2-line] text-xl inline-block w-6 h-6" />
</div>
</Popover.Button>
<Transition
as={Fragment}
enter="transition ease-out duration-200"
enterFrom="opacity-0 transform -translate-x-full"
enterTo="opacity-100 transform translate-x-0"
leave="transition ease-in duration-150"
leaveFrom="opacity-100 transform translate-x-0"
leaveTo="opacity-0 transform -translate-x-full"
>
<Popover.Panel className="fixed bg-slate-50 h-full left-0 top-0 z-30 transform sm:px-0 lg:max-w-3xl">
<div className="overflow-hidden rounded-lg shadow-lg ring-1 ring-black ring-opacity-5 h-full">
{propertiesWidget}
</div>
</Popover.Panel>
</Transition>
</div>
)}
</Popover>
</>
)
}