From 0d3a2982a9b29bd66a05e4b36e606518d4c09959 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Sat, 2 May 2020 22:38:18 +0200 Subject: Switching to a named filters/single input on video-abuse --- .../+admin/moderation/moderation.component.scss | 1 + .../video-abuse-list.component.html | 40 +++++++++++++++++----- .../video-abuse-list.component.scss | 8 +++++ .../users/user-edit/user-password.component.scss | 4 --- .../my-account-video-channel-edit.component.scss | 4 --- .../app/+signup/+register/register.component.scss | 4 --- .../subscribe-button.component.scss | 4 --- client/src/sass/bootstrap.scss | 20 +++++++++-- client/src/sass/primeng-custom.scss | 4 +++ 9 files changed, 62 insertions(+), 27 deletions(-) (limited to 'client/src') diff --git a/client/src/app/+admin/moderation/moderation.component.scss b/client/src/app/+admin/moderation/moderation.component.scss index cf06401cf..26c2a30d4 100644 --- a/client/src/app/+admin/moderation/moderation.component.scss +++ b/client/src/app/+admin/moderation/moderation.component.scss @@ -12,6 +12,7 @@ input { @include peertube-input-text(250px); + flex-grow: 1; } } diff --git a/client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.html b/client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.html index 2f6e12d1c..b55b18333 100644 --- a/client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.html +++ b/client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.html @@ -7,10 +7,32 @@ @@ -100,7 +122,7 @@ @@ -118,7 +140,7 @@
Reporter - -
- + + {videoAbuse.countReportsForReporter, plural, =1 {1 report} other {{{ videoAbuse.countReportsForReporter }} reports}} @@ -149,7 +171,7 @@ {{ videoAbuse.video.channel.ownerAccount ? createByString(videoAbuse.video.channel.ownerAccount) : '' }} - + {videoAbuse.countReportsForReportee, plural, =1 {1 report} other {{{ videoAbuse.countReportsForReportee }} reports}} diff --git a/client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.scss b/client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.scss index d6bc34935..8eee15b64 100644 --- a/client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.scss +++ b/client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.scss @@ -13,3 +13,11 @@ .video-abuse-states .glyphicon-comment { margin-left: 0.5rem; } + +.input-group { + @include peertube-input-group(300px); + + .dropdown-toggle::after { + margin-left: 0; + } +} diff --git a/client/src/app/+admin/users/user-edit/user-password.component.scss b/client/src/app/+admin/users/user-edit/user-password.component.scss index 217d585af..5cd93f6af 100644 --- a/client/src/app/+admin/users/user-edit/user-password.component.scss +++ b/client/src/app/+admin/users/user-edit/user-password.component.scss @@ -16,7 +16,3 @@ input[type=submit] { margin-top: 10px; } - -.input-group-append { - height: 30px; -} diff --git a/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-edit.component.scss b/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-edit.component.scss index 8f8af655c..ba27ee7ff 100644 --- a/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-edit.component.scss +++ b/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-edit.component.scss @@ -19,10 +19,6 @@ my-actor-avatar-info { @include peertube-input-group(fit-content); } -.input-group-append { - height: 30px; -} - input { &[type=text] { @include peertube-input-text(340px); diff --git a/client/src/app/+signup/+register/register.component.scss b/client/src/app/+signup/+register/register.component.scss index e135b5cb4..cc60ef524 100644 --- a/client/src/app/+signup/+register/register.component.scss +++ b/client/src/app/+signup/+register/register.component.scss @@ -58,10 +58,6 @@ @include peertube-input-group(400px); } -.input-group-append { - height: 30px; -} - input:not([type=submit]) { @include peertube-input-text(400px); diff --git a/client/src/app/shared/user-subscription/subscribe-button.component.scss b/client/src/app/shared/user-subscription/subscribe-button.component.scss index 5283a6cc3..b739c5ae2 100644 --- a/client/src/app/shared/user-subscription/subscribe-button.component.scss +++ b/client/src/app/shared/user-subscription/subscribe-button.component.scss @@ -88,10 +88,6 @@ } } - .dropdown-header { - padding-left: 1rem; - } - ::ng-deep form { padding: 0.25rem 1rem; } diff --git a/client/src/sass/bootstrap.scss b/client/src/sass/bootstrap.scss index 377c85070..50f1dafed 100644 --- a/client/src/sass/bootstrap.scss +++ b/client/src/sass/bootstrap.scss @@ -41,6 +41,10 @@ $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/'; box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2); font-size: 15px; + .dropdown-header { + padding-left: 1rem; + } + .dropdown-item { padding: 3px 15px; @@ -262,6 +266,18 @@ ngb-tooltip-window { } } -.input-group > .form-control { - flex: initial; +.input-group { + & > .form-control { + flex: initial; + } + + .input-group-prepend, + .input-group-append { + height: 30px; + } + + .input-group-prepend + input { + border-top-left-radius: 0 !important; + border-bottom-left-radius: 0 !important; + } } diff --git a/client/src/sass/primeng-custom.scss b/client/src/sass/primeng-custom.scss index b3cd7cf51..eab2b2dfd 100644 --- a/client/src/sass/primeng-custom.scss +++ b/client/src/sass/primeng-custom.scss @@ -32,6 +32,10 @@ p-table { height: 40px; display: flex; align-items: center; + + .input-group-text { + background-color: transparent; + } } } -- cgit v1.2.3