From b15fcd49bff880a8246cb48292af3ae8d66f0699 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 10 Jun 2022 15:51:31 +0200 Subject: Prefer global icon instead of glyphicon for copy --- .../input-toggle-hidden.component.html | 2 +- .../input-toggle-hidden.component.scss | 4 ++++ .../shared/shared-icons/global-icon.component.ts | 1 + .../shared-share-modal/video-share.component.html | 1 - .../video-download.component.html | 28 +++++++--------------- .../video-download.component.scss | 7 ------ .../video-download.component.ts | 4 ---- 7 files changed, 14 insertions(+), 33 deletions(-) (limited to 'client/src/app/shared') diff --git a/client/src/app/shared/shared-forms/input-toggle-hidden.component.html b/client/src/app/shared/shared-forms/input-toggle-hidden.component.html index e5edb6c97..f7f9ce403 100644 --- a/client/src/app/shared/shared-forms/input-toggle-hidden.component.html +++ b/client/src/app/shared/shared-forms/input-toggle-hidden.component.html @@ -13,7 +13,7 @@ *ngIf="withCopy" [cdkCopyToClipboard]="input.value" (click)="activateCopiedMessage()" type="button" class="btn btn-outline-secondary text-uppercase" i18n-title title="Copy" > - + Copy diff --git a/client/src/app/shared/shared-forms/input-toggle-hidden.component.scss b/client/src/app/shared/shared-forms/input-toggle-hidden.component.scss index 02a8d7d0e..cc1646a69 100644 --- a/client/src/app/shared/shared-forms/input-toggle-hidden.component.scss +++ b/client/src/app/shared/shared-forms/input-toggle-hidden.component.scss @@ -11,6 +11,10 @@ input { font-size: 15px; } +my-global-icon { + width: 18px; +} + .copy-text { font-size: 14px; margin-left: 5px; diff --git a/client/src/app/shared/shared-icons/global-icon.component.ts b/client/src/app/shared/shared-icons/global-icon.component.ts index ba23edde0..3a0d57691 100644 --- a/client/src/app/shared/shared-icons/global-icon.component.ts +++ b/client/src/app/shared/shared-icons/global-icon.component.ts @@ -21,6 +21,7 @@ const icons = { local: require('!!raw-loader?!../../../assets/images/misc/local.svg').default, // feather icons + copy: require('!!raw-loader?!../../../assets/images/feather/copy.svg').default, flag: require('!!raw-loader?!../../../assets/images/feather/flag.svg').default, playlists: require('!!raw-loader?!../../../assets/images/feather/list.svg').default, syndication: require('!!raw-loader?!../../../assets/images/feather/syndication.svg').default, diff --git a/client/src/app/shared/shared-share-modal/video-share.component.html b/client/src/app/shared/shared-share-modal/video-share.component.html index a6b8576a1..572c03129 100644 --- a/client/src/app/shared/shared-share-modal/video-share.component.html +++ b/client/src/app/shared/shared-share-modal/video-share.component.html @@ -25,7 +25,6 @@ diff --git a/client/src/app/shared/shared-video-miniature/video-download.component.html b/client/src/app/shared/shared-video-miniature/video-download.component.html index 9123d2a5a..bf971229e 100644 --- a/client/src/app/shared/shared-video-miniature/video-download.component.html +++ b/client/src/app/shared/shared-video-miniature/video-download.component.html @@ -28,16 +28,10 @@ @@ -54,16 +48,10 @@ diff --git a/client/src/app/shared/shared-video-miniature/video-download.component.scss b/client/src/app/shared/shared-video-miniature/video-download.component.scss index 04d5eb560..bd42f4813 100644 --- a/client/src/app/shared/shared-video-miniature/video-download.component.scss +++ b/client/src/app/shared/shared-video-miniature/video-download.component.scss @@ -5,13 +5,6 @@ margin-top: 30px; } -.input-group > input { - @include peertube-input-text(auto); - - font-size: 14px; - padding: 0 5px; -} - .advanced-filters-button { display: flex; justify-content: center; diff --git a/client/src/app/shared/shared-video-miniature/video-download.component.ts b/client/src/app/shared/shared-video-miniature/video-download.component.ts index 5328f5170..bbda39c2d 100644 --- a/client/src/app/shared/shared-video-miniature/video-download.component.ts +++ b/client/src/app/shared/shared-video-miniature/video-download.component.ts @@ -193,10 +193,6 @@ export class VideoDownloadComponent { return this.video.privacy.id === VideoPrivacy.PRIVATE || this.video.privacy.id === VideoPrivacy.INTERNAL } - activateCopiedMessage () { - this.notifier.success($localize`Copied`) - } - switchToType (type: DownloadType) { this.type = type } -- cgit v1.2.3