Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Don't display error/password fields on init

Chocobozzze726512d9b35
diff --git a/client/src/standalone/videos/embed.html b/client/src/standalone/videos/embed.html
index b57f689d83..2dd86a8fa4 100644
--- a/client/src/standalone/videos/embed.html
+++ b/client/src/standalone/videos/embed.html
@@ -19,7 +19,7 @@
<body id="custom-css" class="standalone-video-embed">
- <div id="error-block">
+ <div id="error-block" style="display: none;">
<!-- eslint-disable-next-line @angular-eslint/template/elements-content -->
<h1 id="error-title"></h1>
@@ -32,7 +32,7 @@
</details>
</div>
- <div id="video-password-block">
+ <div id="video-password-block" style="display: none;">
<!-- eslint-disable-next-line @angular-eslint/template/elements-content -->
<h1 id="video-password-title"></h1>
diff --git a/client/src/standalone/videos/embed.scss b/client/src/standalone/videos/embed.scss
index b8360d23b4..af05a764b8 100644
--- a/client/src/standalone/videos/embed.scss
+++ b/client/src/standalone/videos/embed.scss
@@ -96,7 +96,7 @@ body {
}
#video-password-content {
- @include margin(1rem, 0, 2rem);
+ @include margin(0, 0, 2rem);
}
#video-password-input,
@@ -105,7 +105,7 @@ body {
padding: 1rem;
margin: 1rem 0.5rem;
border: 0;
- font-weight: 600;
+ font-weight: $font-bold;
border-radius: 3px !important;
font-size: 18px;
display: inline-block;
diff --git a/client/src/standalone/videos/shared/player-html.ts b/client/src/standalone/videos/shared/player-html.ts
index a050e5dde7..8aa127a610 100644
--- a/client/src/standalone/videos/shared/player-html.ts
+++ b/client/src/standalone/videos/shared/player-html.ts
@@ -74,11 +74,6 @@ export class PlayerHTML {
if (incorrectPassword) {
const videoPasswordError = document.getElementById('video-password-error')
videoPasswordError.innerText = peertubeTranslate('Incorrect password, please enter a correct password', translations)
- videoPasswordError.style.transform = 'scale(1.2)'
-
- setTimeout(() => {
- videoPasswordError.style.transform = 'scale(1)'
- }, 500)
}
const videoPasswordSubmitButton = document.getElementById('video-password-submit')