-
-
Notifications
You must be signed in to change notification settings - Fork 544
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 #2069: Transparent top bar stops working when scroll. #2100
Fix #2069: Transparent top bar stops working when scroll. #2100
Conversation
hi, wow!! a lot of work.
|
Hi by the end of the day i'll have everything fixed. I didn't remove any code from anyone, i just didn't have the most recent commit when i requested. It was my bad but i'll resolve it! |
This commit resolves issue code-charity#2069, where the transparent top bar would lose its transparency effect upon scrolling. The issue was addressed by removing unnecessary icons and adjusting opacity settings to maintain the desired transparent appearance even during scrolling.
… Fixed reviewer notes.
4ca11a3
to
1ce6ac4
Compare
hi @joaolscosta!
|
Hi thanks for the response! I did't quite understand what it is suposed about the JS file. Can you give me more details? I'm sorry. For the voice search button you want me to leave it always shown? Is that right? The feature to hide when scroll it is to eliminate? At the time I understood that it would be to change the opacity from 0 to 0.25. I understood it wrong? What do you mean about "opacity 0 3s more accurate opacity 0.25 , 2. seconds or so.". I'm sorry for the miss understandings. |
if (ImprovedTube.storage.header_nameYourNewFeature === true) { JS for the new feature } sorry, i meant to ask: "why opacity:0 and not a bit more?" this line (= different feature) need not be removed:
|
This commit resolves issue code-charity#2069, where the transparent top bar would lose its transparency effect upon scrolling. The issue was addressed by removing unnecessary icons and adjusting opacity settings to maintain the desired transparent appearance even during scrolling. It also have modifications that admin requested to.
Hi @ImprovedTube i just did the suggestions you made it! Hope you like it. |
hi! @joaolscosta thanks for caring!
no event listeners need to be added without a (this) toggle being enabled we can wrap all JS in one IF. (until one day we might use something for or a 2nd feature like your getScrollDirection() )
💭 |
…king-when-scroll-bug-fix-2069
@ImprovedTube First of all, I am realy sorry for my bad understading of what you are trying to recommend to me. So i added that if condition inside the functions but you what all of the transparent bar functions inside of that one if, is that right? And for the line you mention it doesn't need to be removed i just read to remove it ahahah my bad. The feature to disable voice search button while scrolling can be implemented or not? Thanks for the pacience. |
@ImprovedTube I just realized what are you saying about the line to be not removed :( . |
This commit resolves issue code-charity#2069, where the transparent top bar would lose its transparency effect upon scrolling. The issue was addressed by removing unnecessary icons and adjusting opacity settings to maintain the desired transparent appearance even during scrolling. It also have modifications that admin requested to.
@ImprovedTube I just did the modifications you told me to do. Evaluates the changes I made and checks whether the pull request can be accepted. |
No need to be sorry. Still efficient for me. And i tend to make sentences too long.
If you like, i think it will be worth it & motivating if want to note-down/publish your clues for new contributors about this repo. As we don't have much documentation at all, (but extensions are still neglected and getting more popular and we can be more relevant, a framework for extensions developers) |
|
@ImprovedTube Suppose I make any changes? I ended up not understanding |
Realy thanks for the words. You are asking me to comment the code to be more clear what it does? Thanks @ImprovedTube |
So instead of using the already created TransparentColor i create a new line for what i did? Is that it? |
hi @joaolscosta! maybe. this was just a note, waiting-status. in other words:
|
Oh fine, i read your comments a thousand times and it was what I thought but i needed to clear it. |
@ImprovedTube for the issue you have mentioned my last solution did it work? The issue is still open but with tag Completetion/Revision. Do I need to improve or change something? Thanks. |
hi @joaolscosta! it just seemed @Anoaxx might like to try already. @Anoaxx often contributes ideas. |
This commit resolves issue code-charity#2069, where the transparent top bar would lose its transparency effect upon scrolling. The issue was addressed by removing unnecessary icons and adjusting opacity settings to maintain the desired transparent appearance even during scrolling. It also have modifications that admin requested to. Removed the filter top bar of the main page.
Hi @Anoaxx !! i just removed the filter bar you have mentioned. @ImprovedTube I followed your recomendation of inspecting the page and I fixed it pretty quickly. I opted to remove it. Thanks. |
I was thinking and instead of removing it at all should I remove the chips bar just when we scroll? @ImprovedTube @Anoaxx |
Hi! Is there anything i can do more? @ImprovedTube |
hi! @joaolscosta thanks! and sorry i missed your new work! Generally, since we already have a whole settings page for the header alone (appearance:header), e can keep working with that. ( Hide voice search button. Or, when we change something, consider what settings people used before or not (legacy) ) And we can still consider more stuff @raszpl said in #2069 ( ...So now equally for this "chips"-bar, we could also add a toggle and a drop-down Header [hidden; hover] Header: Transparent So this can be a UI-/UX-challenge Meanwhile i might wonder about things like Youtube's new layout experiment. (Comments on the side)
|
Hello @ImprovedTube ! I fully understand what you said, but we also have to understand that the bug that caused this PR is resolved and what you are asking me for are new bugs/features that have to be resolved. I am available to resolve new bugs in a new PR but this must already be completed (considering my skills I will help). I also understand the impact of user reviews but the functionality I am correcting was already there and did not work, with my changes the functionality is implemented and I am contributing to making the extension usable. If we implement things that one day will stop working we would never implement anything since it is not an official YouTube extension, we have to adapt as they change the UI. |
Just a check if you missed the message again. It's fine!!! @ImprovedTube |
hi! @joaolscosta,
btw (if you want), a scrolling eventlistener can be a in our functions.js / used more often. ( #2149 (comment) ) |
…king-when-scroll-bug-fix-2069
This commit resolves issue code-charity#2069, where the transparent top bar would lose its transparency effect upon scrolling. The issue was addressed by removing unnecessary icons and adjusting opacity settings to maintain the desired transparent appearance even during scrolling. It also have modifications that admin requested to. Removed not necessary lines.
Hi again @ImprovedTube !! Thanks for your support!! About the event listenner appreciate for your comment because i used that for something i did before but don't realy need it anymore. I understood which is the right way to do the scroll event but i just removed the lines and commited. |
62a36d2
to
40aedd4
Compare
@ImprovedTube hey admin!! :)) Is there anything else i can contribute to here? |
hi! :) @joaolscosta. Thanks for caring! You choose! |
(github doesnt notice it is only white space changes) some of your CSS is overwriting each other, the first version has no effect: /* Change opacity when scrolling down */
html[it-header-transparent=true][data-scroll-direction=down] ytd-masthead #end {
opacity: 0;
} /* Make other icons barely visible */
html[it-header-transparent=true][data-scroll-direction=down] ytd-masthead #end {
opacity: 0.7 !important;
} you can review your CSS and we can add the button called something like |
This commit resolves issue code-charity#2069, where the transparent top bar would lose its transparency effect upon scrolling. The issue was addressed by removing unnecessary icons and adjusting opacity settings to maintain the desired transparent appearance even during scrolling. It also have modifications that admin requested to. Added an alternative choice in apperance to this transparent header.
Hi @ImprovedTube!! |
…king-when-scroll-bug-fix-2069
hi @joaolscosta, thank you for caring & patience! ..I don't know. Nothing has to be final. Maybe the word scroll should appear in the name or a nice/promising word like 'advanced'? Or would it be good to be one combined feature, with one or two sub-options, appearing below it once activated? https://github.com/code-charity/youtube/releases/tag/v4.920rev5 |
This commit resolves issue #2069, where the transparent top bar would lose its transparency effect upon scrolling. The issue was addressed by removing unnecessary icons and adjusting opacity settings to maintain the desired transparent appearance even during scrolling.