Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Hide alt text when committer's avatar fails to load #2066

Merged
merged 1 commit into from
Apr 15, 2019
Merged

Hide alt text when committer's avatar fails to load #2066

merged 1 commit into from
Apr 15, 2019

Conversation

rkbhochalya
Copy link
Contributor

Description of the Change

When we start Atom with no internet connectivity, committer's email address is shown in the place of committer's avatar in recent comments list in Git pane, which overlaps git messages and makes them hard to read. I have hidden alt text setting text color to transparent and overflow to hidden for the image element. This leaves an empty box instead of showing committer's email address when avatar fails to load and doesn't make any visual change when avatar is visible.

Screenshot/Gif

image

image

Alternate Designs

Alternatively we can show a default avatar but I went for just hiding the alt text as it was easy to implement.

Benefits

Commits list no longer looks weird when Atom is started with no internet.

Possible Drawbacks

Nothing I can think of.

Applicable Issues

#1528

Metrics

N/A

Tests

N/A

Documentation

N/A

Release Notes

Fixed an issue where committer's email address is shown in the place of committer's avatar when Atom is started with no internet connection.

This leaves an empty space instead of showing committer's email address when Atom is started with no internet connection.

Closes #1528
Copy link
Contributor

@smashwilson smashwilson left a comment

Choose a reason for hiding this comment

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

Oh cool! Thanks for taking care of this 🙇

@smashwilson smashwilson merged commit e0b2853 into atom:master Apr 15, 2019
@rkbhochalya rkbhochalya deleted the rkbhochalya-fix-broken-avatar branch April 15, 2019 14:15
smashwilson added a commit that referenced this pull request May 8, 2019
Hide alt text when committer's avatar fails to load
This was referenced May 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants