mirror of
https://github.com/langgenius/dify.git
synced 2026-04-05 11:39:19 +08:00
refactor: replace react markdown with streamdown (#32971)
Co-authored-by: Stephen Zhou <hi@hyoban.cc> Co-authored-by: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Co-authored-by: yyh <92089059+lyzno1@users.noreply.github.com>
This commit is contained in:
@@ -303,7 +303,13 @@ const AudioPlayer: React.FC<AudioPlayerProps> = ({ src, srcs }) => {
|
||||
<source key={index} src={srcUrl} />
|
||||
))}
|
||||
</audio>
|
||||
<button type="button" data-testid="play-pause-btn" className="inline-flex shrink-0 cursor-pointer items-center justify-center border-none text-text-accent transition-all hover:text-text-accent-secondary disabled:text-components-button-primary-bg-disabled" onClick={togglePlay} disabled={!isAudioAvailable}>
|
||||
<button
|
||||
type="button"
|
||||
data-testid="play-pause-btn"
|
||||
className="inline-flex shrink-0 cursor-pointer items-center justify-center border-none text-text-accent transition-all hover:text-text-accent-secondary disabled:text-components-button-primary-bg-disabled"
|
||||
onClick={togglePlay}
|
||||
disabled={!isAudioAvailable}
|
||||
>
|
||||
{isPlaying
|
||||
? (<div className="i-ri-pause-circle-fill h-5 w-5" />)
|
||||
: (<div className="i-ri-play-large-fill h-5 w-5" />)}
|
||||
|
||||
Reference in New Issue
Block a user