-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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 AdBlock blocking share icon, ref #866 #4337
Conversation
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
@jancborchardt, thanks for your PR! By analyzing the history of the files in this pull request, we identified @rullzer, @VicDeo and @blizzz to be potential reviewers. |
Please also review the pull requests to Calendar nextcloud/calendar#417 and Contacts nextcloud/contacts#188 :) |
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.
Tested and works 👍 Solution looks fine
@@ -326,14 +326,12 @@ img, object, video, button, textarea, input, select { | |||
background-image: url('../img/actions/settings-white.svg?v=1'); | |||
} | |||
|
|||
/* always use icon-shared, AdBlock blocks icon-share */ | |||
.icon-shared, |
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 now uses a different image 👎 please fix
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.
The images share.svg and shared.svg are and have always been exactly the same. What’s the issue exactly?
This finally takes care of the share icon being blocked by AdBlock (or other adblocking plugins). As the user bases of Adblock and Nextcloud probably have some reasonable overlap, we should fix this.
This is simply achieved by renaming the class from icon-share to icon-shared, which doesn’t seem to be blocked.
Ref #866, please review @kumzugloom @Pommesumdreher @MariusBluem @Bullnados @GetBoz @schiessle
Before: share icon is missing, and with that you don’t really know where to click / how to share:
After: it’s displayed, as intended – same as when you don’t have Adblock:
Will also open pull requests to open this in other apps using the icons, like Calendar and Contacts.
Also, I would say this is a bugfix to backport – any objection @rullzer? ;)