fix(web): исправить Base UI error #31 в App Switcher
Build, Test, and Push CFDM Docker Image / test (push) Successful in 3m16s
Build, Test, and Push CFDM Docker Image / build-and-push (push) Successful in 1m59s
Build, Test, and Push CFDM Docker Image / update-wiki (push) Successful in 6s
Build, Test, and Push CFDM Docker Image / create-release (push) Has been skipped
Build, Test, and Push CFDM Docker Image / test (push) Successful in 3m16s
Build, Test, and Push CFDM Docker Image / build-and-push (push) Successful in 1m59s
Build, Test, and Push CFDM Docker Image / update-wiki (push) Successful in 6s
Build, Test, and Push CFDM Docker Image / create-release (push) Has been skipped
DropdownMenuLabel перенесён внутрь DropdownMenuGroup; для внешних ссылок добавлен nativeButton={false}.
Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -59,10 +59,10 @@ export function AppSwitcher() {
|
|||||||
align="start"
|
align="start"
|
||||||
sideOffset={4}
|
sideOffset={4}
|
||||||
>
|
>
|
||||||
<DropdownMenuLabel className="text-xs text-muted-foreground">
|
|
||||||
{config.menuLabel}
|
|
||||||
</DropdownMenuLabel>
|
|
||||||
<DropdownMenuGroup>
|
<DropdownMenuGroup>
|
||||||
|
<DropdownMenuLabel className="text-xs text-muted-foreground">
|
||||||
|
{config.menuLabel}
|
||||||
|
</DropdownMenuLabel>
|
||||||
{config.apps.map((app) => {
|
{config.apps.map((app) => {
|
||||||
const Icon = APP_SWITCHER_ICONS[app.icon]
|
const Icon = APP_SWITCHER_ICONS[app.icon]
|
||||||
const isCurrent = app.id === CURRENT_APP_ID
|
const isCurrent = app.id === CURRENT_APP_ID
|
||||||
@@ -78,7 +78,11 @@ export function AppSwitcher() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<DropdownMenuItem key={app.id} render={<a href={app.url} />}>
|
<DropdownMenuItem
|
||||||
|
key={app.id}
|
||||||
|
nativeButton={false}
|
||||||
|
render={<a href={app.url} />}
|
||||||
|
>
|
||||||
<Icon />
|
<Icon />
|
||||||
{app.name}
|
{app.name}
|
||||||
{app.shortcut ? (
|
{app.shortcut ? (
|
||||||
|
|||||||
Reference in New Issue
Block a user