Commit bb26b341 authored by Joel's avatar Joel

fix: model zindex

parent e7ec1af3
...@@ -28,7 +28,7 @@ const ModelConfig: FC<IModelConfigProps> = ({ ...@@ -28,7 +28,7 @@ const ModelConfig: FC<IModelConfigProps> = ({
return ( return (
<div className='flex items-center justify-between h-[52px] px-3 rounded-xl bg-gray-50'> <div className='flex items-center justify-between h-[52px] px-3 rounded-xl bg-gray-50'>
<div className='text-sm font-semibold text-gray-800'>Model</div> <div className='text-sm font-semibold text-gray-800'>Model</div>
<div className="relative" style={{ zIndex: 30 }}> <div className="relative z-10">
<div ref={triggerRef} onClick={() => !readonly && toogleOption()} className={cn(readonly ? 'cursor-not-allowed' : 'cursor-pointer', 'flex items-center h-9 px-3 space-x-2 rounded-lg bg-gray-50 ')}> <div ref={triggerRef} onClick={() => !readonly && toogleOption()} className={cn(readonly ? 'cursor-not-allowed' : 'cursor-pointer', 'flex items-center h-9 px-3 space-x-2 rounded-lg bg-gray-50 ')}>
<ModelIcon modelId={currModel?.id as string} /> <ModelIcon modelId={currModel?.id as string} />
<div className="text-sm gray-900">{currModel?.name}</div> <div className="text-sm gray-900">{currModel?.name}</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment