refactor: remove horizontal rule from BaseHeader and adjust VadVoice component styles

This commit is contained in:
2026-03-12 03:29:37 +08:00
parent 0441745075
commit 988cda5716
2 changed files with 2 additions and 2 deletions

View File

@@ -83,7 +83,6 @@ export const BaseHeader = (props: { main?: React.ComponentType | null }) => {
{meInfo} {meInfo}
</div> </div>
</div> </div>
<hr />
</> </>
) )
} }

View File

@@ -310,6 +310,7 @@ export const VadVoice = () => {
console.log('VAD real start'); console.log('VAD real start');
setRealListen(true); setRealListen(true);
}, },
minSpeechMs: 1000, // 最短语音持续时间单位毫秒默认400ms,可以根据需要调整
}); });
ref.current = myvad; ref.current = myvad;
@@ -407,7 +408,7 @@ export const VadVoice = () => {
}; };
return <div className="h-full flex flex-col"> return <div className="h-full flex flex-col">
{/* Audio Recordings List */} {/* Audio Recordings List */}
<div className="flex-1 overflow-y-auto px-2 py-3 min-h-0 max-h-76 overflow-hidden"> <div className="flex-1 overflow-y-auto px-2 py-3 overflow-hidden">
{ {
voiceList.length === 0 ? ( voiceList.length === 0 ? (
<div className="text-center text-gray-400 text-sm py-8"> <div className="text-center text-gray-400 text-sm py-8">