-
Notifications
You must be signed in to change notification settings - Fork 900
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
Display more profiles on the profile drop-down list, v2 (fixed for low res, fixed linter) #4359
Display more profiles on the profile drop-down list, v2 (fixed for low res, fixed linter) #4359
Conversation
Fixed for low res, fixed linter complains
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.
Height is auto adjusted until at least 5 profiles are shown (like now)
Works great~
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.
Great job @CelularBat! I do have two very minor nitpicks if that's okay:
-
nitpick: Dropdown clips into the bottom bar on mobile, so you might need a media query to handle that. Totally fine to pass on if this one is too much trouble to resolve.
-
suggestion (non-blocking): A code comment explaining the
max-block-size
will help if we ever decide to resize the bars at some point, or something like that.
Head branch was pushed to by a user without write access
fixed typo
Head branch was pushed to by a user without write access
adjust for screen with horizontal navbar (mobile)
Head branch was pushed to by a user without write access
|
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.
src/renderer/components/ft-profile-selector/ft-profile-selector.css
Outdated
Show resolved
Hide resolved
src/renderer/components/ft-profile-selector/ft-profile-selector.css
Outdated
Show resolved
Hide resolved
src/renderer/components/ft-profile-selector/ft-profile-selector.css
Outdated
Show resolved
Hide resolved
…r.css Co-authored-by: PikachuEXE <pikachuexe@gmail.com>
Head branch was pushed to by a user without write access
…r.css Co-authored-by: PikachuEXE <pikachuexe@gmail.com>
Head branch was pushed to by a user without write access
…r.css Co-authored-by: PikachuEXE <pikachuexe@gmail.com>
Head branch was pushed to by a user without write access
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
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.
LGTM. Tested with four main cases:
- Few profiles desktop view
- Few profiles tablet & mobile view
- Many profiles desktop view
- Many profiles tablet & mobile view
Thanks for being so patient with our nitpicks! Contributing the first time to a new repo can be scary, but you've been very responsive and cooperative.
1. Done. But some testing on mobile would be nice, because I've tested it only on desktop.
Just so you know for the future, you can pretty accurately emulate the mobile experience using Device Mode in Chrome DevTools.
* development: Translated using Weblate (Italian) Translated using Weblate (Polish) Translated using Weblate (Kurdish (Central)) Translated using Weblate (Spanish) Translated using Weblate (Kurdish (Central)) Translated using Weblate (Kurdish) A new way to subscribe (FreeTubeApp#4238) Display more profiles on the profile drop-down list, v2 (fixed for low res, fixed linter) (FreeTubeApp#4359) Translated using Weblate (Estonian) Translated using Weblate (Serbian) Translated using Weblate (Arabic) Translated using Weblate (Chinese (Simplified)) Display currently watching viewer count on live streams (FreeTubeApp#4206) Translated using Weblate (Spanish) Translated using Weblate (Czech) Translated using Weblate (Chinese (Traditional)) Translated using Weblate (Italian) Fix block channel channel ID validation (FreeTubeApp#4366)
Fixed previous PR: #4357
Current profile list has hardcoded size, so it can always display only 5 profiles. If you have more profiles you have to scroll, if you have much more profiles, like 15+ scrolling for what you want to find in that little 5-items box is inconvenient.
This extends profile list size to fit the amount of profiles.
Pull Request Type
Related issue
closes #2871
Description
it changes 4 lines of .css
Screenshots
before:
![p1](https://private-user-images.githubusercontent.com/105959781/284180988-58ed6434-a667-4e15-a9fe-c931511e0523.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyODQ0OTEsIm5iZiI6MTczOTI4NDE5MSwicGF0aCI6Ii8xMDU5NTk3ODEvMjg0MTgwOTg4LTU4ZWQ2NDM0LWE2NjctNGUxNS1hOWZlLWM5MzE1MTFlMDUyMy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQ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RlcnM9aG9zdCJ9.Kpm9i8oRM3-LJ8yZSStDtNm4a3Bq_9GRG8kGaJNds_Y)
![p3](https://private-user-images.githubusercontent.com/105959781/284182342-017dfa71-458a-42cf-a05f-8dc5d98ceed0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyODQ0OTEsIm5iZiI6MTczOTI4NDE5MSwicGF0aCI6Ii8xMDU5NTk3ODEvMjg0MTgyMzQyLTAxN2RmYTcxLTQ1OGEtNDJjZi1hMDVmLThkYzVkOThjZWVkMC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMVQxNDI5NTFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iODJlZTM0MDFkOGJiZGU0YjI4NDViZGM5NzQyYjJjYmQ4MzFiYmIzMmVlNzk5ZWZmOTZkYTAxNTdlMWI2OGNhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.JzGFkbrx48Ju4nDcDJ56yPwX7NvpxotT20pqtBe4KrU)
![p4](https://private-user-images.githubusercontent.com/105959781/284184594-00173fb6-436e-417e-977f-b051dcf89550.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyODQ0OTEsIm5iZiI6MTczOTI4NDE5MSwicGF0aCI6Ii8xMDU5NTk3ODEvMjg0MTg0NTk0LTAwMTczZmI2LTQzNmUtNDE3ZS05NzdmLWIwNTFkY2Y4OTU1MC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMVQxNDI5NTFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04MWJmMWZkYzVlNmMxNmMzMzhiYWQ5M2ZlNDE1NzM1M2YyOGMzODQzZDY5YmM4MTkyNDdmZDAyN2RlYWNlMzQ5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.EQo704ocpJPLVZ4rCOEj1f6xvrgNwfBrXrscmpavKSo)
after (at 1920x1080)
after (at 1920x1080 ,random window size)
after (at 1280x720)
Desktop