-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Logo navigationDrawer placeholder for not square images #8962
Comments
@guillim can i look into it. I was also looking at the project to contribute further, might help me to kick start. |
yes you can @SandipGyawali |
ok thanks |
@Bonapara : a question about the color. Do we let the background color transparent ? do we follow what we do on the |
@guillim i was trying to setup the project and i has an issue are you familier with it? |
never mind resolved it. |
usually, when I have this kind of issue, i do |
Initally i also removed the cache and did yarn install it didn't work for me. |
What was responsible of the bug ? Any link that can be useful for other contributors ? |
for now i basically i asked chat gpt and used the above reference to solve it locally on my system. It typically happends when you have many files being watched by tools like vite, which relies on file watchers to track changes. Command used for my system |
Yes we should follow what we did for |
I am planning to create a Here is the logic I am planning to implement:
@guillim @Bonapara Would love your feedback on the overall approach and any potential improvements ? Here is the screenshot when the image exceeds the height and width of 16px : |
Don't we already have a component for this? |
@Bonapara 's got a point. The best option would be to adapt existing component logic for this specific use case so that all images benefits from this feature. If you could look at |
I reviewed the logic for displaying the placeholder in const showPlaceholder =
noAvatarUrl || invalidAvatarUrls.includes(avatarImageURI); While this works for cases where the image URL is invalid or missing, it does not account for the image's dimensions. Another approach would be to update the image styling using the Which approach should we prefer ? |
the check for the image's dimensions sounds a better approach to me, since it's what @Bonapara has in mind. |
@muraliSingh7 @SandipGyawali, I think we had a misunderstanding with @guillim. The current behavior (zoom in) is what we want. We will introduce some guidelines for uploading a logo so users won't upload an inadequate one. My point was that we should display an icon avatar in case the user don't upload a workspace logo. We will do this later in another issue as well. Thanks! |
@Bonapara ok fine.. |
My bad guys ! Sorry for your time loss |
Sorry for the bad communication @SandipGyawali, just linked the replacement issue |
@Bonapara that's fine. i will look for the other issues. that might be ok right?? |
Sure @SandipGyawali! |
that's fine. some time mistake happens. |
Scope & Context
Currently, Logo is not displayed properly in navigationDrawer when the uploaded image is not a square image.
Current behavior
Expected behavior
It would be nice to have a placehodler for images that are not squared. For example here the ACME company logo would be replaced by the first letter A and a pink background.
Technical inputs
We could use the
Avatar.tsx
component to achieve thisThe text was updated successfully, but these errors were encountered: