-
Notifications
You must be signed in to change notification settings - Fork 898
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 style for the Select component #4405
Conversation
Fixes FreeTubeApp#1804 Fixes the width of dropdowns and changes their style a little bit
I'll check this out. FYI, you can run |
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.
praise: I think it's a positive change. It is more visually prominent, which some may not like, but I think that's ultimately a better choice for accessibility. It was sometimes difficult to see how wide the dropdown & its click area was before. I also did not encounter the original bug, so that looks good as well.
issue (pre-existing): This isn't a new issue with the ft-select
component, but I do see that this particular one is unclickable on its bottom half (it's at the top of the comments section for a given video). This is most likely related to its placement rather than the component itself, but take a jab at this if you don't mind.
chore (blocking): Just run the npm run lint-fix
command (may have to do a soft git reset first) to resolve the linting issues.
Head branch was pushed to by a user without write access
I fixed the linting issues and the problem with sort dropdown in the comments section. |
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.
Maybe im a bit biased because i got used to that alignment but to me it looks more visually pleasing. If this is the better way to do it than we should definitely keep this. Lets wait for others to have a say in it. |
Btw, I think it should be in the same position for dropdowns and input fields. |
I think both look fine, although after looking at it for too long, the difference in right alignment is actually quite vexing to me. I'd probably prefer changing it, and see if making the left-aligned label have the same margin as the right makes things better or worse (probably worse, if I were to wager). I think the differing placement of the tooltips compared to nitpick (pre-existing): These should probably have a |
I'm not sure I understand. What do you want me to do exactly?
They do. But someone wanted all dropdowns to be full-width on smaller resolutions: https://github.com/FreeTubeApp/FreeTube/blob/development/src/renderer/components/ft-select/ft-select.css#L156. I think it's a good thing, but maybe I would move the breakpoint to |
Thanks for checking on that! I would trust @MarmadileManteater on that more than me, so you can keep that the same. For the first part, yes, I'm leaning towards @efb4f5ff-1298-471a-8973-3d47447115dc's suggestion. |
Hi @pkrasicki, are you still good to implement that final suggestion? |
Head branch was pushed to by a user without write access
@jasonhenriquez done. |
@PikachuEXE It also fixes the click area to match its visual area. Like when trying to click between the area between the bottom border and the arrow here. |
Fix style for the Select component
Pull Request Type
Related issue
Fixes #1804
Description
Fixes the width of dropdowns and changes their style a little bit.
Screenshots
Testing
Testing dropdowns manually on settings page, channel view and in comment section with different window sizes.
Desktop
Additional context
None.