Improve business profile branding uploads and super-admin link menus.
Show separate light/dark logo and favicon croppers in a compact grid, support favicon saves, and keep super-admin overflow dashboard links in English. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
5e799eddf9
commit
468bb87fcf
@@ -109,21 +109,21 @@ export function DomainLinksOverflowMenu({ host, onRemove }: DomainLinksOverflowM
|
||||
const items = [
|
||||
{
|
||||
key: 'website',
|
||||
label: 'باز کردن وبسایت',
|
||||
label: 'Open website',
|
||||
detail: websiteHost,
|
||||
icon: Globe,
|
||||
onClick: () => openHost(websiteHost),
|
||||
},
|
||||
{
|
||||
key: 'business',
|
||||
label: 'داشبورد کسبوکار',
|
||||
label: 'Business dashboard',
|
||||
detail: businessHost,
|
||||
icon: Building2,
|
||||
onClick: () => openHost(businessHost),
|
||||
},
|
||||
{
|
||||
key: 'customer',
|
||||
label: 'داشبورد مشتری',
|
||||
label: 'Customer dashboard',
|
||||
detail: customerHost,
|
||||
icon: UserRound,
|
||||
onClick: () => openHost(customerHost),
|
||||
@@ -141,8 +141,8 @@ export function DomainLinksOverflowMenu({ host, onRemove }: DomainLinksOverflowM
|
||||
e.stopPropagation()
|
||||
toggleOpen()
|
||||
}}
|
||||
title="عملیات بیشتر"
|
||||
aria-label={`عملیات بیشتر برای ${apex}`}
|
||||
title="More actions"
|
||||
aria-label={`More actions for ${apex}`}
|
||||
aria-haspopup="menu"
|
||||
aria-expanded={open}
|
||||
>
|
||||
@@ -156,9 +156,7 @@ export function DomainLinksOverflowMenu({ host, onRemove }: DomainLinksOverflowM
|
||||
ref={popoverRef}
|
||||
className={styles.menu}
|
||||
role="menu"
|
||||
aria-label={`عملیات بیشتر برای ${apex}`}
|
||||
lang="fa"
|
||||
dir="rtl"
|
||||
aria-label={`More actions for ${apex}`}
|
||||
style={{
|
||||
top: popoverPos.top,
|
||||
left: popoverPos.left,
|
||||
@@ -196,7 +194,7 @@ export function DomainLinksOverflowMenu({ host, onRemove }: DomainLinksOverflowM
|
||||
}}
|
||||
>
|
||||
<Trash2 size={16} />
|
||||
<span>حذف</span>
|
||||
<span>Remove</span>
|
||||
</button>
|
||||
</div>,
|
||||
document.body,
|
||||
|
||||
Reference in New Issue
Block a user