Open AndrewLester opened 2 years ago
@tuxology , @srish I would like to work on this issue.
@AndrewLester, I would like to work on this. Please assign. Thank you.
Thanks @AndrewLester for filing the issue! Assigning it to @Deepanshu039 on first come first serve basis :)
@srish can I still work on this?
@Deepthi562 Only one person can work on an issue at a time :)
We should update #467 to fix this 🙏
@tuxology I was working on this issue but want to ask some questions before opening a PR
I realized that in NavBar.jsx, when searching for projects, the options are filtered to only show the logged-in user's projects. Is this what we want? I think the user should be able to search for other people's projects so I'm not sure if this is intentional.
Is it okay to show the project title in two lines for small screen so that more content is shown? I used textWrap
to wrap text up to 2 lines but the ellipsis
is not compatible with textWrap
so the title does not look like it continues. I was thinking of using -webkit-line-clamp
which allows for ellipsis.
I tried 2 different implementations to style. Which one do you think is better?
Another thing, we currently do not have a limit for the username, so it can be very long, which makes the search options to look like this: Should I account for this in this PR or leave it because long usernames also distort many other things in other views, so there can be a limit for that in the validation schema
@tuxology I was working on this issue but want to ask some questions before opening a PR
- I realized that in NavBar.jsx, when searching for projects, the options are filtered to only show the logged-in user's projects. Is this what we want? I think the user should be able to search for other people's projects so I'm not sure if this is intentional.
- Is it okay to show the project title in two lines for small screen so that more content is shown? I used
textWrap
to wrap text up to 2 lines but theellipsis
is not compatible withtextWrap
so the title does not look like it continues. I was thinking of using-webkit-line-clamp
which allows for ellipsis.- I tried 2 different implementations to style. Which one do you think is better?
- The first one keeps the username next to title for large screens and places it under title for small screens
- The second one places the username whenever the title is long. This one is more flexible but may look messy.
- Another thing, we currently do not have a limit for the username, so it can be very long, which makes the search options to look like this: Should I account for this in this PR or leave it because long usernames also distort many other things in other views, so there can be a limit for that in the validation schema
I think I can attempt to answer most of your questions @brrkrmn:
Describe the bug Search autocomplete option's main text is shrinking before their short text when the option's space is limited. See below:
To Reproduce
Expected behavior The creator name gets shrunk first (truncated by ellipsis), then the main text. To do this, you'll probably want to add flex shrink to the shortText inside the Option component. Give the shortText a higher flex shrink than the main text.