mirror of
https://github.com/usememos/memos.git
synced 2025-02-21 13:50:40 +01:00
chore: add file type to audio (#1492)
* chore: add file type to audio * chore: update
This commit is contained in:
parent
3eac19d258
commit
4e023e2500
@ -19,7 +19,9 @@ const MemoResource: React.FC<Props> = (props: Props) => {
|
||||
<div className={`w-auto flex flex-row justify-start items-center hover:opacity-80 ${className}`}>
|
||||
{resource.type.startsWith("audio") ? (
|
||||
<>
|
||||
<audio className="h-8" src={resourceUrl} controls></audio>
|
||||
<audio controls>
|
||||
<source src={resourceUrl} type={resource.type} />
|
||||
</audio>
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
|
Loading…
x
Reference in New Issue
Block a user