From fe33398d225c675b4d342261c3be22e9714f9a7f Mon Sep 17 00:00:00 2001 From: Christopher <39032787+MrRobotjs@users.noreply.github.com> Date: Fri, 25 Oct 2024 06:48:02 -0600 Subject: [PATCH] series page action buttons design improved - "add want to read", "edit information", "more", "scrobbling" and "download" action buttons on the page of a series have been redesigned --- .../chapter-detail/chapter-detail.component.html | 4 ++-- .../chapter-detail/chapter-detail.component.scss | 4 ++++ .../download-button.component.html | 4 ++-- .../series-detail/series-detail.component.html | 16 ++++++++-------- .../series-detail/series-detail.component.scss | 4 +++- UI/Web/src/theme/components/_buttons.scss | 15 ++++++++++++++- 6 files changed, 33 insertions(+), 14 deletions(-) diff --git a/UI/Web/src/app/chapter-detail/chapter-detail.component.html b/UI/Web/src/app/chapter-detail/chapter-detail.component.html index 6106557346..16b070a8e3 100644 --- a/UI/Web/src/app/chapter-detail/chapter-detail.component.html +++ b/UI/Web/src/app/chapter-detail/chapter-detail.component.html @@ -65,7 +65,7 @@

@if (accountService.isAdmin$ | async) {
-
@@ -73,7 +73,7 @@

- +
diff --git a/UI/Web/src/app/chapter-detail/chapter-detail.component.scss b/UI/Web/src/app/chapter-detail/chapter-detail.component.scss index ca6c6d57c4..9e56fa4cba 100644 --- a/UI/Web/src/app/chapter-detail/chapter-detail.component.scss +++ b/UI/Web/src/app/chapter-detail/chapter-detail.component.scss @@ -1 +1,5 @@ @use '../../series-detail-common'; + +:host ::ng-deep .card-actions .btn.btn-actions { + padding: 0.375rem 0.75rem; +} diff --git a/UI/Web/src/app/series-detail/_components/download-button/download-button.component.html b/UI/Web/src/app/series-detail/_components/download-button/download-button.component.html index 518bdc83cf..9b1cb46af4 100644 --- a/UI/Web/src/app/series-detail/_components/download-button/download-button.component.html +++ b/UI/Web/src/app/series-detail/_components/download-button/download-button.component.html @@ -1,7 +1,7 @@ @if (canDownload$ | async) { @if (download$ | async; as download) { - } @else { - } diff --git a/UI/Web/src/app/series-detail/_components/series-detail/series-detail.component.html b/UI/Web/src/app/series-detail/_components/series-detail/series-detail.component.html index e0037204e9..bd26dfae27 100644 --- a/UI/Web/src/app/series-detail/_components/series-detail/series-detail.component.html +++ b/UI/Web/src/app/series-detail/_components/series-detail/series-detail.component.html @@ -48,12 +48,12 @@

-
+
@@ -72,7 +72,7 @@

-
@@ -89,19 +89,19 @@

@if ((accountService.hasValidLicense$ | async) && libraryAllowsScrobbling) {
-
}
-
- +
+
-
+
diff --git a/UI/Web/src/app/series-detail/_components/series-detail/series-detail.component.scss b/UI/Web/src/app/series-detail/_components/series-detail/series-detail.component.scss index e19cfeb2c4..26ef0aabc1 100644 --- a/UI/Web/src/app/series-detail/_components/series-detail/series-detail.component.scss +++ b/UI/Web/src/app/series-detail/_components/series-detail/series-detail.component.scss @@ -27,4 +27,6 @@ } } - +:host ::ng-deep .card-actions.btn-actions .btn { + padding: 0.375rem 0.75rem; +} diff --git a/UI/Web/src/theme/components/_buttons.scss b/UI/Web/src/theme/components/_buttons.scss index 1080898b67..b9e940e95b 100644 --- a/UI/Web/src/theme/components/_buttons.scss +++ b/UI/Web/src/theme/components/_buttons.scss @@ -37,7 +37,20 @@ box-shadow: inset 0px -2px 0px 0px var(--btn-secondary-outline-text-color); border-bottom-left-radius: 0; border-bottom-right-radius: 0; + } +} + +.btn-actions { + color: var(--btn-fa-icon-color); + border-radius: 6px; + + &:hover { + background-color: rgb(255 255 255 / 18%); + } + &:active, &:focus { + background-color: rgb(255 255 255 / 28%) !important; + border-color: transparent !important; } } @@ -45,7 +58,7 @@ filter: var(--btn-icon-filter) !important; } -.btn-primary:disabled, .btn-primary.disabled { +.btn-primary:disabled, .btn-primary.disabled, .btn-tertiary.disabled { background-color: var(--btn-disabled-bg-color); color: var(--btn-disabled-text-color); border-color: var(--btn-disabled-border-color);