diff options
author | kontrollanten <6680299+kontrollanten@users.noreply.github.com> | 2022-09-28 11:52:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-28 11:52:23 +0200 |
commit | f2a16d93b476aff16d5353e4d44350298ec7e01c (patch) | |
tree | 36c43eb3299c4a1137ca38dd1a564701a5a27236 /client/src/sass/player/offline-notification.scss | |
parent | 43972ee466740e91b16c08fe106551657969e669 (diff) | |
download | PeerTube-f2a16d93b476aff16d5353e4d44350298ec7e01c.tar.gz PeerTube-f2a16d93b476aff16d5353e4d44350298ec7e01c.tar.zst PeerTube-f2a16d93b476aff16d5353e4d44350298ec7e01c.zip |
Handle network issues in video player (#5138)
* feat(client/player): handle network offline
* feat(client/player): human friendly err msg
* feat(client/player): handle broken resolutions
When an error occurs for a resolution, remove the resolution and try
with another resolution.
* fix(client/player): prevent err handl when offline
* fix(client/player): localize offline text
Diffstat (limited to 'client/src/sass/player/offline-notification.scss')
-rw-r--r-- | client/src/sass/player/offline-notification.scss | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/client/src/sass/player/offline-notification.scss b/client/src/sass/player/offline-notification.scss new file mode 100644 index 000000000..2108c2e30 --- /dev/null +++ b/client/src/sass/player/offline-notification.scss | |||
@@ -0,0 +1,22 @@ | |||
1 | $height: 40px; | ||
2 | |||
3 | .vjs-peertube-offline-notification { | ||
4 | position: absolute; | ||
5 | top: 0; | ||
6 | left: 0; | ||
7 | right: 0; | ||
8 | height: $height; | ||
9 | color: #000; | ||
10 | background-color: var(--mainColorLightest); | ||
11 | text-align: center; | ||
12 | z-index: 1; | ||
13 | display: flex; | ||
14 | justify-content: center; | ||
15 | align-items: center; | ||
16 | } | ||
17 | |||
18 | .vjs-modal-dialog | ||
19 | .vjs-modal-dialog-content, | ||
20 | .video-js .vjs-modal-dialog { | ||
21 | top: $height; | ||
22 | } | ||