Skip to content

Commit

Permalink
correção de video
Browse files Browse the repository at this point in the history
  • Loading branch information
710lucas committed Nov 16, 2023
1 parent 37c23d0 commit 6e0ccbd
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,10 @@ export function GroupContentMaterials() {

function handleVideoClick(id : string, material : Content){
if(playingVideo == id){
showMiniature(id)
if(document.getElementsByClassName("fullscreen"))
showMiniature(id)

Check warning on line 216 in src/pages/Group/GroupTabs/GroupContents/GroupContentMaterials/GroupContentMaterials.tsx

View check run for this annotation

Codecov / codecov/patch

src/pages/Group/GroupTabs/GroupContents/GroupContentMaterials/GroupContentMaterials.tsx#L216

Added line #L216 was not covered by tests
else
expand(id)

Check warning on line 218 in src/pages/Group/GroupTabs/GroupContents/GroupContentMaterials/GroupContentMaterials.tsx

View check run for this annotation

Codecov / codecov/patch

src/pages/Group/GroupTabs/GroupContents/GroupContentMaterials/GroupContentMaterials.tsx#L218

Added line #L218 was not covered by tests
}
else{
setIsMiniature(false)
Expand Down Expand Up @@ -250,8 +253,6 @@ export function GroupContentMaterials() {
containers.iframeContainer?.classList.add("iframe-container")
containers.videoContainer?.classList.add("fullscreen")

let modal = document.getElementsByClassName("universi-modal-overlay")[0] as HTMLElement
modal.style.backgroundColor = "rgba(0, 0, 0, 0.5)";

if(containers.close){
containers.close.innerHTML = "✖";
Expand All @@ -272,8 +273,6 @@ export function GroupContentMaterials() {
containers.iframeContainer?.classList.add("mini-iframe")
containers.videoContainer?.classList.remove("fullscreen")

let modal = document.getElementsByClassName("universi-modal-overlay")[0] as HTMLElement
modal.style.backgroundColor = "transparent";

if(containers.close){
containers.close.innerHTML = "⛶"
Expand Down

0 comments on commit 6e0ccbd

Please sign in to comment.