From 54e7884775197877dd941b44bef03b3c6387b22a Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Fri, 6 Mar 2020 16:58:55 +0100 Subject: Normalize modal close buttons, and cancel/submit button styles --- client/src/app/shared/confirm/confirm.component.ts | 2 +- client/src/app/shared/forms/input-readonly-copy.component.html | 2 +- .../shared/video-playlist/video-add-to-playlist.component.scss | 5 +++-- client/src/app/shared/video/modals/video-blacklist.component.html | 8 ++++++-- client/src/app/shared/video/video-actions-dropdown.component.ts | 7 ++----- 5 files changed, 13 insertions(+), 11 deletions(-) (limited to 'client/src/app/shared') diff --git a/client/src/app/shared/confirm/confirm.component.ts b/client/src/app/shared/confirm/confirm.component.ts index 763454c4f..d67d4f3c8 100644 --- a/client/src/app/shared/confirm/confirm.component.ts +++ b/client/src/app/shared/confirm/confirm.component.ts @@ -60,7 +60,7 @@ export class ConfirmComponent implements OnInit { showModal () { this.inputValue = '' - this.openedModal = this.modalService.open(this.confirmModal) + this.openedModal = this.modalService.open(this.confirmModal, { centered: true }) this.openedModal.result .then(() => this.confirmService.confirmResponse.next(true)) diff --git a/client/src/app/shared/forms/input-readonly-copy.component.html b/client/src/app/shared/forms/input-readonly-copy.component.html index b6a56ec44..9566e9741 100644 --- a/client/src/app/shared/forms/input-readonly-copy.component.html +++ b/client/src/app/shared/forms/input-readonly-copy.component.html @@ -1,4 +1,4 @@ -
+
diff --git a/client/src/app/shared/video-playlist/video-add-to-playlist.component.scss b/client/src/app/shared/video-playlist/video-add-to-playlist.component.scss index f1b6cd601..1724449e8 100644 --- a/client/src/app/shared/video-playlist/video-add-to-playlist.component.scss +++ b/client/src/app/shared/video-playlist/video-add-to-playlist.component.scss @@ -4,7 +4,7 @@ .header, .dropdown-item, .input-container { - padding: 6px 24px 10px 24px; + padding: 8px 24px; } .header { @@ -54,11 +54,12 @@ } .playlist { - display: flex; + display: inline-flex; cursor: pointer; my-peertube-checkbox { margin-right: 10px; + align-self: center; } .display-name { diff --git a/client/src/app/shared/video/modals/video-blacklist.component.html b/client/src/app/shared/video/modals/video-blacklist.component.html index 1a87bdcd4..857a4dcec 100644 --- a/client/src/app/shared/video/modals/video-blacklist.component.html +++ b/client/src/app/shared/video/modals/video-blacklist.component.html @@ -18,8 +18,12 @@
+ i18n-labelText labelText="Unfederate the video" + > + + This will ask remote instances to delete it + +
diff --git a/client/src/app/shared/video/video-actions-dropdown.component.ts b/client/src/app/shared/video/video-actions-dropdown.component.ts index 69f45346e..67c4d6fbc 100644 --- a/client/src/app/shared/video/video-actions-dropdown.component.ts +++ b/client/src/app/shared/video/video-actions-dropdown.component.ts @@ -1,8 +1,7 @@ -import { AfterViewInit, Component, EventEmitter, Input, OnChanges, Output, ViewChild } from '@angular/core' +import { Component, EventEmitter, Input, OnChanges, Output, ViewChild } from '@angular/core' import { I18n } from '@ngx-translate/i18n-polyfill' import { DropdownAction, DropdownButtonSize, DropdownDirection } from '@app/shared/buttons/action-dropdown.component' -import { AuthService, ConfirmService, Notifier, ServerService } from '@app/core' -import { BlocklistService } from '@app/shared/blocklist' +import { AuthService, ConfirmService, Notifier } from '@app/core' import { Video } from '@app/shared/video/video.model' import { VideoService } from '@app/shared/video/video.service' import { VideoDetails } from '@app/shared/video/video-details.model' @@ -73,10 +72,8 @@ export class VideoActionsDropdownComponent implements OnChanges { private notifier: Notifier, private confirmService: ConfirmService, private videoBlacklistService: VideoBlacklistService, - private serverService: ServerService, private screenService: ScreenService, private videoService: VideoService, - private blocklistService: BlocklistService, private redundancyService: RedundancyService, private i18n: I18n ) { } -- cgit v1.2.3