Skip to content
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 Positioning of Control Header on Google Desktop #478

Merged
merged 8 commits into from
Jun 6, 2024

Conversation

aug-dev
Copy link
Contributor

@aug-dev aug-dev commented May 27, 2024

Summary

This PR fixes an issue reported on #463, where the uBlacklist control header bar (the one that shows how many sites were blocked) would overlap with the Google "Tools" bar.

Demo

control-header-demo.webm
Screencast.from.2024-05-26.22-24-50.webm

Small Note

There is a very small use of the :has() selector here:

// Remove margin when no entry has been blocked
"&:has(.ub-hidden)": {
margin: "0 !important",
},

This is a rule that removes a little bit of the margin that was added when there is no blocked entries.

I've tested it on Firefox ESR, and everything is fine.

This is pretty much a case of graceful degradation.

@aug-dev
Copy link
Contributor Author

aug-dev commented May 29, 2024

This PR was extended so now it also provides a solution to issue #475.

Copy link
Owner

@iorate iorate left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you always for your contribution.
Please check my comment.

src/scripts/search-engines/google-desktop.ts Outdated Show resolved Hide resolved
@aug-dev
Copy link
Contributor Author

aug-dev commented Jun 4, 2024

I've found some issues in certain result pages:

image

I'm going to fix it.

@aug-dev
Copy link
Contributor Author

aug-dev commented Jun 4, 2024

image

Fixed.

@iorate iorate merged commit 7b03799 into iorate:master Jun 6, 2024
1 check passed
@aug-dev aug-dev deleted the fix-control-header branch June 6, 2024 22:03
Copy link

github-actions bot commented Jun 8, 2024

🎉 This PR is included in version 8.7.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants