From 34957c5a18151164839b6ddbba8bc724f59d7484 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 24 Oct 2024 10:07:02 +0200 Subject: [PATCH] Simplify and improve subscribe button --- .../shared-forms/input-text.component.scss | 5 ++ .../subscribe-button.component.html | 80 +++++++++---------- .../subscribe-button.component.scss | 61 ++++---------- .../subscribe-button.component.ts | 63 ++++++++++----- client/src/sass/bootstrap.scss | 7 +- client/src/sass/include/_mixins.scss | 31 ++++++- 6 files changed, 138 insertions(+), 109 deletions(-) diff --git a/client/src/app/shared/shared-forms/input-text.component.scss b/client/src/app/shared/shared-forms/input-text.component.scss index ae8bf5fec..8f1cadea4 100644 --- a/client/src/app/shared/shared-forms/input-text.component.scss +++ b/client/src/app/shared/shared-forms/input-text.component.scss @@ -9,6 +9,11 @@ input { .btn { @include button-with-icon(18px); + + & { + line-height: 18px; + top: 0; + } } .copy-text { diff --git a/client/src/app/shared/shared-user-subscription/subscribe-button.component.html b/client/src/app/shared/shared-user-subscription/subscribe-button.component.html index f4abb3ff1..fb2a7011b 100644 --- a/client/src/app/shared/shared-user-subscription/subscribe-button.component.html +++ b/client/src/app/shared/shared-user-subscription/subscribe-button.component.html @@ -1,71 +1,63 @@
- -
+ +
@if (isSingleSubscribe) { Subscribe } @else {
Subscribe to all channels
-
+
{{ subscribeStatus(true).length }}/{{ subscribed.size }} channels subscribed
}
- - - {{ videoChannels[0].followersCount | myNumberFormatter }} - - + @if (isUserLoggedIn()) { @if (isAllChannelsSubscribed) { - } @else { - + + } - + } @else { + + } - - +