Skip to content

Commit

Permalink
Merge pull request #255 from universi-me/fix#254/vídeo-não-maximiza-a…
Browse files Browse the repository at this point in the history
…pos-minimização

correção de video
  • Loading branch information
710lucas authored Dec 16, 2023
2 parents c676834 + 6e0ccbd commit 9e3e9e4
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,10 @@ export function GroupContentMaterials() {

function handleVideoClick(id : string, material : Content){
if(playingVideo == id){
showMiniature(id)
if(document.getElementsByClassName("fullscreen"))
showMiniature(id)
else
expand(id)
}
else{
setIsMiniature(false)
Expand Down Expand Up @@ -245,8 +248,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 @@ -267,8 +268,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 9e3e9e4

Please sign in to comment.