Skip to content

Commit

Permalink
wip/ref webview: Show spinner for thumbnail placeholders
Browse files Browse the repository at this point in the history
TODO update as needed for merged web version
TODO test, manually

This is a port of zulip/zulip 30477.
  • Loading branch information
gnprice committed Jul 16, 2024
1 parent 2ae8d8e commit c2249ee
Show file tree
Hide file tree
Showing 4 changed files with 104 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/webview/css/cssNight.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@ body {
.highlight {
background-color: hsla(51, 100%, 64%, 0.42);
}
.message_inline_image img.image-loading-placeholder {
content: url("images/loader-white.svg");
}
`;
3 changes: 3 additions & 0 deletions src/webview/static/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,9 @@ time {
height: 160px;
object-fit: contain;
}
.message_inline_image img.image-loading-placeholder {
content: url("images/loader-black.svg");
}

.message_inline_video {
position: relative;
Expand Down
49 changes: 49 additions & 0 deletions src/webview/static/images/loader-black.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
49 changes: 49 additions & 0 deletions src/webview/static/images/loader-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c2249ee

Please sign in to comment.