From c5dcdab330b1767c0ce25d788ed51119f74e7e71 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Sat, 21 Nov 2020 12:43:53 +0100 Subject: add explicit numbers in configuration number inputs fixes #1346 --- .../edit-custom-config.component.html | 58 ++++++++++++++-------- .../edit-custom-config.component.scss | 11 ++++ .../video-comment-list.component.html | 4 +- 3 files changed, 50 insertions(+), 23 deletions(-) (limited to 'client/src/app') diff --git a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html index e0361fbfd..09539fa92 100644 --- a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html +++ b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html @@ -362,10 +362,13 @@
- +
+ + {form.value['signup']['limit'], plural, =1 {user} other {users}} +
{{ formErrors.signup.limit }}
Signup won't be limited to a fixed number of users.
@@ -743,22 +746,29 @@
- +
+ + {form.value['live']['maxInstanceLives'], plural, =1 {live} other {lives}} +
- +
+ + {form.value['live']['maxUserLives'], plural, =1 {live} other {lives}} +
- +
@@ -780,7 +790,7 @@
@@ -922,7 +932,7 @@
@@ -968,19 +978,25 @@
- +
+ + {form.value['cache']['previews']['size'], plural, =1 {cached image} other {cached images}} +
{{ formErrors.cache.previews.size }}
- +
+ + {form.value['cache']['captions']['size'], plural, =1 {cached image} other {cached images}} +
{{ formErrors.cache.captions.size }}
diff --git a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.scss b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.scss index 14cd6bd8b..d5352b472 100644 --- a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.scss +++ b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.scss @@ -22,6 +22,17 @@ input[type=number] { display: block; } +.number-with-unit { + position: relative; + width: min-content; + + input[type=number] + span { + position: absolute; + top: 5px; + right: 2.5rem; + } +} + input[type=checkbox] { @include peertube-checkbox(1px); } diff --git a/client/src/app/+admin/moderation/video-comment-list/video-comment-list.component.html b/client/src/app/+admin/moderation/video-comment-list/video-comment-list.component.html index 8b7c12ba3..8ec4ebbb2 100644 --- a/client/src/app/+admin/moderation/video-comment-list/video-comment-list.component.html +++ b/client/src/app/+admin/moderation/video-comment-list/video-comment-list.component.html @@ -105,11 +105,11 @@ {{ videoComment.video.name }} - +
- {{ videoComment.createdAt | date: 'short' }} + {{ videoComment.createdAt | date: 'short' }} -- cgit v1.2.3