ITADN

Loading Spinner

#678Pull RequestFrostKiwi 创建于 2024-11-29
F
FrostKiwicommented
Solves https://github.com/utterance/utterances/issues/564 Utterances doesn't have a loading spinner. This is fatal, if GitHub's API doesn't respond quickly, as Utterances shows *nothing*, making the user scroll away before the loading is complete. I see it especially on the Smartphone, when connection isn't the best and you scroll down to the comments section. This PR adds a loading spinner, that respects the Theme set by the user, see gifs below. The colors are taken from the Theme file variables. | Github-Light | Github-Dark | |--------|-------| | ![ezgif-2-11a886846c](https://github.com/user-attachments/assets/6629e71c-540c-463c-8bc6-54abe353bf47) | ![ezgif-2-b455666da4](https://github.com/user-attachments/assets/e7a02cc5-9caf-40d1-a686-e5ff41cf0e93) | | Gruvbox-Dark | [Sakura-Vader](https://github.com/utterance/utterances/pull/677) | |--------|-------| | ![ezgif-2-28eee88f9f](https://github.com/user-attachments/assets/eb3e86db-c208-47a0-8bb0-a5ac8bf46dca) | ![ezgif-2-c6797c6bfb](https://github.com/user-attachments/assets/5d7d0a19-7da2-45d2-9ea0-a10d4348d35e) |
合并状态:未合并 0 条评论