From be42ccb3f5a6f5400d6d983bf5a040a44fbc1ec9 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 23 Oct 2024 10:47:41 +0200 Subject: [PATCH] Fix "subscribe to all channels" button ui --- .../subscribe-button.component.html | 35 ++++++++++--------- .../subscribe-button.component.scss | 34 ++---------------- .../_custom-bootstrap-helpers.scss | 4 +++ 3 files changed, 26 insertions(+), 47 deletions(-) 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 d1d551c18..f4abb3ff1 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 @@ -4,16 +4,17 @@ > - - Subscribe +
+ @if (isSingleSubscribe) { + Subscribe + } @else { +
Subscribe to all channels
- - Subscribe to all channels - {{ subscribeStatus(true).length }}/{{ subscribed.size }} - channels subscribed - - - +
+ {{ subscribeStatus(true).length }}/{{ subscribed.size }} channels subscribed +
+ } +
{{ videoChannels[0].followersCount | myNumberFormatter }} @@ -21,13 +22,15 @@
- - - + @if (isAllChannelsSubscribed) { + + } @else { + + } button:first-child { - width: max-content; - min-width: 175px; - } - - button .extra-text { - span:first-child { - line-height: 80%; - } - - span:not(:first-child) { - font-size: 75%; - } - } + &.big > button:first-child { + width: max-content; + min-width: 175px; } // Unlogged @@ -104,17 +90,3 @@ @include peertube-input-text(100%); } } - -.extra-text { - display: flex; - flex-direction: column; - - span:first-child { - line-height: 75%; - } - - span:not(:first-child) { - font-size: 60%; - text-align: start; - } -} diff --git a/client/src/sass/class-helpers/_custom-bootstrap-helpers.scss b/client/src/sass/class-helpers/_custom-bootstrap-helpers.scss index 8a5fa815f..c4f228587 100644 --- a/client/src/sass/class-helpers/_custom-bootstrap-helpers.scss +++ b/client/src/sass/class-helpers/_custom-bootstrap-helpers.scss @@ -11,6 +11,10 @@ @include font-size(14px); } +.fs-8 { + @include font-size(12px); +} + // Handle dynamically RTL layouts .text-start {