-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(SUP-43106): bring captions in front of entry title/description #788
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,6 +44,7 @@ | |
} | ||
|
||
.playkit-subtitles { | ||
z-index: 10; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I feel like the changes should be applied only for audio-entries. Also, need check how it behaves with dual-screen plugin that manage caption z-index as well There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. could you elaborate on the dual-screen ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. either ways (z-index =1 or more) the captions would be in front of the 2 videos. |
||
position: absolute; | ||
top: 0; | ||
bottom: 0; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how do subtitles look in non-audio entries after the change ? do they look ok ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in non-audio entries, you don't have title/description on the media itself, so it's not the same case.
![image](https://private-user-images.githubusercontent.com/162575174/346321600-33647d40-1b0e-4a41-ab34-1bd21d34b88c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNjM2NjIsIm5iZiI6MTczOTA2MzM2MiwicGF0aCI6Ii8xNjI1NzUxNzQvMzQ2MzIxNjAwLTMzNjQ3ZDQwLTFiMGUtNGE0MS1hYjM0LTFiZDIxZDM0Yjg4Yy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOVQwMTA5MjJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iOGQwZWU1YTNiYWM4ZGJmMGVmMjM4ZjE2M2VmOWI4MmRmMTMyYmJlODE2Y2RlN2Y2ZDFkNTc4YzM1N2VmMmFlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.gxU4u9kE6D1GVLNcNdZBFebFVkX965r8xNPDqw_YBoc)
however, I did encounter this issue in both types:
i noticed these buttons have z-index=1 as well as the title/description's = 1.
we shall set the captions at z-index > 1 so that it'll be in front of the title/descreption. but setting it to 2 would cover the buttons as seen in the above photo.
shall we increase the buttons with 1 so that we can set the caption to 2?
also, what should be taken into account to determine the value of caption-z-index, other than the buttons?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is how it would look like if :
![image](https://private-user-images.githubusercontent.com/162575174/346328855-9ebd5ba8-e213-4cba-b3dd-0ad53e8a245d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNjM2NjIsIm5iZiI6MTczOTA2MzM2MiwicGF0aCI6Ii8xNjI1NzUxNzQvMzQ2MzI4ODU1LTllYmQ1YmE4LWUyMTMtNGNiYS1iM2RkLTBhZDUzZThhMjQ1ZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOVQwMTA5MjJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xNThhZTA1OTBkODUzOTU3ZDA0Y2NhMzMxN2U1MGUyNjZlM2RjZDcwMjAxZjgwYWIzNzU4ZmQyYjZmNzU2NDYxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.zcXLSgsOqQDZFWVaC1mFzmzK0XqBPuaLeYleT8WijX4)
.player .bottom-bar { z-index = 3 } (instead of 1 , 2 would also work fine)
and
.playkit-subtitles { z-index = 2 }
let me know if something else needs to be considered here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, i agree with what sergey said below - we should localize the change to audio entries.
theres a variable on the global state called isAudio that should help with checking the entry type. see example here