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 --- client/src/app/+accounts/accounts.component.html | 2 +- client/src/app/+accounts/accounts.component.scss | 6 +++++ .../+video-channels/video-channels.component.html | 2 +- .../+video-channels/video-channels.component.scss | 6 +++++ .../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 ---- client/src/assets/images/feather/copy.svg | 1 + 12 files changed, 29 insertions(+), 35 deletions(-) create mode 100644 client/src/assets/images/feather/copy.svg (limited to 'client/src') diff --git a/client/src/app/+accounts/accounts.component.html b/client/src/app/+accounts/accounts.component.html index d92760ff8..db045b046 100644 --- a/client/src/app/+accounts/accounts.component.html +++ b/client/src/app/+accounts/accounts.component.html @@ -28,7 +28,7 @@ diff --git a/client/src/app/+accounts/accounts.component.scss b/client/src/app/+accounts/accounts.component.scss index a316bd599..e5f86e61e 100644 --- a/client/src/app/+accounts/accounts.component.scss +++ b/client/src/app/+accounts/accounts.component.scss @@ -37,7 +37,13 @@ my-user-moderation-dropdown { } .copy-button { + @include margin-left(3px); + border: 0; + + my-global-icon { + width: 15px; + } } .account-info { diff --git a/client/src/app/+video-channels/video-channels.component.html b/client/src/app/+video-channels/video-channels.component.html index 780db79b0..1b9dbe7b9 100644 --- a/client/src/app/+video-channels/video-channels.component.html +++ b/client/src/app/+video-channels/video-channels.component.html @@ -67,7 +67,7 @@ diff --git a/client/src/app/+video-channels/video-channels.component.scss b/client/src/app/+video-channels/video-channels.component.scss index c00dacae5..945d9a13d 100644 --- a/client/src/app/+video-channels/video-channels.component.scss +++ b/client/src/app/+video-channels/video-channels.component.scss @@ -150,7 +150,13 @@ } .copy-button { + @include margin-left(3px); + border: 0; + + my-global-icon { + width: 15px; + } } @media screen and (max-width: 1400px) { 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 } diff --git a/client/src/assets/images/feather/copy.svg b/client/src/assets/images/feather/copy.svg new file mode 100644 index 000000000..4e0b09f19 --- /dev/null +++ b/client/src/assets/images/feather/copy.svg @@ -0,0 +1 @@ + \ No newline at end of file -- cgit v1.2.3