element-hq / element-hq/element-android

Border or shadow for loading image previews

Open
#2,688 0 comments 3 reactions 0 assignees View on GitHub
T-Enhancement
Dominant language
Kotlin
Stars
3.7k
Forks
917
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
Some of my users find it rather confusing to have a blank area in the timeline while an image is loading. You can't really tell what it is or why it's there, especially for large images or slow networks, where such an occurrence is common and lasts a while.

**Describe the solution you'd like**
Since the image event has a width and height attribute, it should be possible to generate a shadow for where the image will be once it loads. This could either be just a shadow around the would-be outline (which could even stay post-load) or a background colour different to that of the timeline background, to highlight the presence of a loading message. A loader would probably be fine too.

**Describe alternatives you've considered**
All listed above.

**Additional context**
N/A

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.