Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
canifa_note
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
canifa_note
Commits
73980e96
Commit
73980e96
authored
Oct 07, 2023
by
Steven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: fix video element syntax
parent
087e631d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
MemoResource.tsx
web/src/components/MemoResource.tsx
+1
-3
MemoResourceListView.tsx
web/src/components/MemoResourceListView.tsx
+1
-3
No files found.
web/src/components/MemoResource.tsx
View file @
73980e96
...
@@ -20,9 +20,7 @@ const MemoResource: React.FC<Props> = (props: Props) => {
...
@@ -20,9 +20,7 @@ const MemoResource: React.FC<Props> = (props: Props) => {
<
div
className=
{
`w-auto flex flex-row justify-start items-center text-gray-500 dark:text-gray-400 hover:opacity-80 ${className}`
}
>
<
div
className=
{
`w-auto flex flex-row justify-start items-center text-gray-500 dark:text-gray-400 hover:opacity-80 ${className}`
}
>
{
resource
.
type
.
startsWith
(
"audio"
)
?
(
{
resource
.
type
.
startsWith
(
"audio"
)
?
(
<>
<>
<
audio
controls
>
<
audio
src=
{
resourceUrl
}
controls
></
audio
>
<
source
src=
{
resourceUrl
}
type=
{
resource
.
type
}
/>
</
audio
>
</>
</>
)
:
(
)
:
(
<>
<>
...
...
web/src/components/MemoResourceListView.tsx
View file @
73980e96
...
@@ -84,9 +84,7 @@ const MemoResourceListView: React.FC<Props> = (props: Props) => {
...
@@ -84,9 +84,7 @@ const MemoResourceListView: React.FC<Props> = (props: Props) => {
const
url
=
getResourceUrl
(
resource
);
const
url
=
getResourceUrl
(
resource
);
return
(
return
(
<
SquareDiv
key=
{
resource
.
id
}
className=
"memo-resource"
>
<
SquareDiv
key=
{
resource
.
id
}
className=
"memo-resource"
>
<
video
preload=
"metadata"
controls
key=
{
resource
.
id
}
>
<
video
preload=
"metadata"
crossOrigin=
"anonymous"
src=
{
absolutifyLink
(
url
)
}
controls
></
video
>
<
source
src=
{
absolutifyLink
(
url
)
}
type=
{
resource
.
type
}
/>
</
video
>
</
SquareDiv
>
</
SquareDiv
>
);
);
})
}
})
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment