Skip to content

Commit

Permalink
Dcn/multimedia resources windows fix (#376)
Browse files Browse the repository at this point in the history
* changed place of the 'nprogress' by few px

* trying a configuration to increase 'maxConcurrentTasks'

* removed @mui/icons-react from deps and let it in devDeps

* getting rid of the cache for videos

* updated the css a little bit

---------

Co-authored-by: danielc-n <[email protected]>
  • Loading branch information
DanielC-N and danielc-n authored Oct 28, 2024
1 parent f66dd9e commit 7c579b8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,13 @@ export default function TranslationHelpsMultimediaCard({
<div className="image-name">{imagePath[0]}</div>
{/* Check if the path is a video (e.g., ends with .mp4) */}
{imagePath[1].match(/\.(mp4|webm|ogg)$/i) ? (
// <video
// key={index}
// src={imagePath[1]}
// controls
// className="gallery-video"
// />
<VideoPlayer key={index} videoUrl={imagePath[1]} />
<video
key={index}
src={imagePath[1]}
controls
className="gallery-video"
/>
// <VideoPlayer key={index} videoUrl={imagePath[1]} />
) : (
<img
key={index}
Expand Down
2 changes: 2 additions & 0 deletions styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -863,6 +863,7 @@ Select scribe theme Start
object-fit: cover;
cursor: pointer;
transition: transform 0.2s;
border-radius: 10px;
}

.gallery-image:hover {
Expand Down Expand Up @@ -901,6 +902,7 @@ Select scribe theme Start
max-width: 90%;
max-height: 90%;
object-fit: contain;
border-radius: 10px;
}

.zoomed-video {
Expand Down

0 comments on commit 7c579b8

Please sign in to comment.