Refine admin menu
This commit is contained in:
parent
6d3d893d1b
commit
5fea934962
@ -22,15 +22,15 @@ export default function AdminPhotoMenuClient({
|
|||||||
<MoreMenu {...{
|
<MoreMenu {...{
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
label: 'Edit Photo',
|
label: 'Edit',
|
||||||
icon: <FaRegEdit size={14} className="translate-y-[-0.5px]" />,
|
icon: <FaRegEdit size={14} />,
|
||||||
href: pathForAdminPhotoEdit(photo.id),
|
href: pathForAdminPhotoEdit(photo.id),
|
||||||
}, {
|
}, {
|
||||||
label: isFav ? 'Unfavorite' : 'Favorite',
|
label: isFav ? 'Unfavorite' : 'Favorite',
|
||||||
icon: isFav
|
icon: isFav
|
||||||
? <FaStar
|
? <FaStar
|
||||||
size={14}
|
size={14}
|
||||||
className="translate-y-[-1px] text-amber-500"
|
className="text-amber-500"
|
||||||
/>
|
/>
|
||||||
: <FaRegStar
|
: <FaRegStar
|
||||||
size={14}
|
size={14}
|
||||||
|
|||||||
@ -23,7 +23,7 @@ export default function MoreMenu({
|
|||||||
const itemClass = clsx(
|
const itemClass = clsx(
|
||||||
'block w-full',
|
'block w-full',
|
||||||
'border-none min-h-0 bg-transparent',
|
'border-none min-h-0 bg-transparent',
|
||||||
'text-base text-main text-left',
|
'text-sm text-main text-left',
|
||||||
'px-3 py-1.5 rounded-[3px]',
|
'px-3 py-1.5 rounded-[3px]',
|
||||||
'hover:text-main',
|
'hover:text-main',
|
||||||
'hover:bg-gray-50 active:bg-gray-100',
|
'hover:bg-gray-50 active:bg-gray-100',
|
||||||
@ -58,7 +58,7 @@ export default function MoreMenu({
|
|||||||
</Menu.Button>
|
</Menu.Button>
|
||||||
<Menu.Items className={clsx(
|
<Menu.Items className={clsx(
|
||||||
'absolute top-6',
|
'absolute top-6',
|
||||||
'min-w-[9rem]',
|
'min-w-[8rem]',
|
||||||
'text-left',
|
'text-left',
|
||||||
'md:right-1',
|
'md:right-1',
|
||||||
'p-1 rounded-md border',
|
'p-1 rounded-md border',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user