瀏覽代碼

fix(plugins_select): Adjust z-index, fix issue where options cannot be displayed (#22873) (#22893)

tags/1.7.1
HyaCinth 3 月之前
父節點
當前提交
061d4c8ea0
沒有連結到貢獻者的電子郵件帳戶。

+ 1
- 1
web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/config-popup.tsx 查看文件

'use client' 'use client'
import type { FC } from 'react'
import type { FC, JSX } from 'react'
import React, { useCallback, useState } from 'react' import React, { useCallback, useState } from 'react'
import { useTranslation } from 'react-i18next' import { useTranslation } from 'react-i18next'
import { useBoolean } from 'ahooks' import { useBoolean } from 'ahooks'

+ 3
- 3
web/app/components/app-sidebar/app-operations.tsx 查看文件

import type { ReactElement } from 'react'
import type { JSX } from 'react'
import { cloneElement, useCallback } from 'react' import { cloneElement, useCallback } from 'react'
import { useEffect, useRef, useState } from 'react' import { useEffect, useRef, useState } from 'react'
import { useTranslation } from 'react-i18next' import { useTranslation } from 'react-i18next'
import { RiMoreLine } from '@remixicon/react' import { RiMoreLine } from '@remixicon/react'


export type Operation = { export type Operation = {
id: string; title: string; icon: ReactElement; onClick: () => void
id: string; title: string; icon: JSX.Element; onClick: () => void
} }


const AppOperations = ({ operations, gap }: { const AppOperations = ({ operations, gap }: {
updatedEntries[id] = true updatedEntries[id] = true
width += gap + childWidth width += gap + childWidth
} }
else {
else {
if (i === childrens.length - 1 && width + childWidth <= containerWidth) if (i === childrens.length - 1 && width + childWidth <= containerWidth)
updatedEntries[id] = true updatedEntries[id] = true
else else

+ 2
- 2
web/app/components/base/select/pure.tsx 查看文件

triggerPopupSameWidth={triggerPopupSameWidth} triggerPopupSameWidth={triggerPopupSameWidth}
> >
<PortalToFollowElemTrigger <PortalToFollowElemTrigger
onClick={() => handleOpenChange(!mergedOpen)}
onClick={() => !disabled && handleOpenChange(!mergedOpen)}
asChild asChild
> >
<div <div
</div> </div>
</PortalToFollowElemTrigger> </PortalToFollowElemTrigger>
<PortalToFollowElemContent className={cn( <PortalToFollowElemContent className={cn(
'z-10',
'z-[9999]',
popupWrapperClassName, popupWrapperClassName,
)}> )}>
<div <div

Loading…
取消
儲存