Commit 3cabb99f by 李伟康

fix(base): 修复语音输入组件层级显示问题

- 在语音输入组件wrapper中添加z-10层级样式确保正确显示
- 解决语音输入界面可能被其他元素覆盖的问题
1 parent d993b940
...@@ -181,7 +181,7 @@ const VoiceInput = ({ onCancel, onConverted, wordTimestamps }: VoiceInputTypes) ...@@ -181,7 +181,7 @@ const VoiceInput = ({ onCancel, onConverted, wordTimestamps }: VoiceInputTypes)
const seconds = originDuration % 60 const seconds = originDuration % 60
return ( return (
<div className={cn(s.wrapper, 'absolute inset-0 rounded-xl')}> <div className={cn(s.wrapper, 'absolute inset-0 rounded-xl z-10')}>
{/* <div className="absolute inset-[1.5px] flex items-center overflow-hidden rounded-[10.5px] bg-primary-25 py-[14px] pl-[14.5px] pr-[6.5px]"></div> */} {/* <div className="absolute inset-[1.5px] flex items-center overflow-hidden rounded-[10.5px] bg-primary-25 py-[14px] pl-[14.5px] pr-[6.5px]"></div> */}
<div className="absolute inset-[1.5px] flex items-center overflow-hidden rounded-[10.5px] bg-primary-25 pl-[14.5px] pr-[6.5px]"> <div className="absolute inset-[1.5px] flex items-center overflow-hidden rounded-[10.5px] bg-primary-25 pl-[14.5px] pr-[6.5px]">
<canvas id="voice-input-record" className="absolute bottom-0 left-0 h-4 w-full" /> <canvas id="voice-input-record" className="absolute bottom-0 left-0 h-4 w-full" />
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!