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

Add unhide-reactions-on-mobile feature #6182

Merged
merged 1 commit into from
Dec 11, 2022

Conversation

jtagcat
Copy link
Contributor

@jtagcat jtagcat commented Dec 4, 2022

Closes #6161

Test URLs

#6161

Firefox users have to set layout.css.has-selector.enabled to true in about:config (https://developer.mozilla.org/en-US/docs/Web/CSS/:has#browser_compatibility).

Screenshot

demo

Tested

On Google Play Store version of Firefox Nightly for Developers, version 109.0a1.
With npx web-ext run -t firefox-android --adb-device <use adb devices> --firefox-apk org.mozilla.fenix

Copy link
Member

@fregante fregante 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 💚

readme.md Outdated Show resolved Hide resolved
source/features/unhide-reactions-on-mobile.css Outdated Show resolved Hide resolved
@jtagcat jtagcat requested a review from fregante December 4, 2022 14:11
@jtagcat jtagcat mentioned this pull request Dec 4, 2022
3 tasks
@yakov116 yakov116 changed the title Add unhide-reactions-on-mobile Add unhide-reactions-on-mobile feature Dec 4, 2022
Copy link
Member

@fregante fregante left a comment

Choose a reason for hiding this comment

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

I added a h4 { color red; } as an initial test. With isIssueOrPRList, it should not affect the login page..?

I just remembered why. All CSS is always imported. For addCssFeature to work, you have to use .rgh-* in every selector. Refer to other features that use addCssFeature

But in this case we don't need this at all, it's a small CSS bugfix that does not need to be "disableable".

Changes required:

  • Delete .tsx file
  • Import .css in refined-github.ts and move it to the right place
  • Probably revert the changes to the readme as well if CI fails

@jtagcat
Copy link
Contributor Author

jtagcat commented Dec 4, 2022

Tested (again) working on a mobile device.

@fregante fregante merged commit e22963a into refined-github:main Dec 11, 2022
@jtagcat jtagcat deleted the unhide-reactions-on-mobile branch December 11, 2022 10:44
@fregante
Copy link
Member

fregante commented Feb 2, 2023

Love your screenshot by the way.

Are there other features hidden on mobile that you find useful? I think I always need something else but never open an issue when I do 😳

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

Successfully merging this pull request may close these issues.

Mobile reactions / emoji button in comments
3 participants