diff --git a/booklore-ui/src/app/features/metadata/component/metadata-provider-field-selector/metadata-provider-field-selector.component.html b/booklore-ui/src/app/features/metadata/component/metadata-provider-field-selector/metadata-provider-field-selector.component.html index 096359b79..259e142f5 100644 --- a/booklore-ui/src/app/features/metadata/component/metadata-provider-field-selector/metadata-provider-field-selector.component.html +++ b/booklore-ui/src/app/features/metadata/component/metadata-provider-field-selector/metadata-provider-field-selector.component.html @@ -10,29 +10,27 @@
-
-
- @for (group of providerGroups; track group.label) { -
-
- -

{{ group.label }}

-
-
- @for (field of group.fields; track field) { -
- - - -
- } -
+
+ @for (group of providerGroups; track group.label) { +
+
+ +

{{ group.label }}

- } -
+
+ @for (field of group.fields; track field) { +
+ + + +
+ } +
+
+ }
diff --git a/booklore-ui/src/app/features/metadata/component/metadata-provider-field-selector/metadata-provider-field-selector.component.scss b/booklore-ui/src/app/features/metadata/component/metadata-provider-field-selector/metadata-provider-field-selector.component.scss index 5592ab814..626fc9562 100644 --- a/booklore-ui/src/app/features/metadata/component/metadata-provider-field-selector/metadata-provider-field-selector.component.scss +++ b/booklore-ui/src/app/features/metadata/component/metadata-provider-field-selector/metadata-provider-field-selector.component.scss @@ -1,14 +1,20 @@ -.preferences-section { - @media (min-width: 768px) { - padding: 0 0.5rem; +.settings-card { + display: flex; + flex-direction: column; + gap: 1.25rem; + background: var(--card-background); + border: 1px solid var(--p-content-border-color); + border-radius: 8px; + padding: 1.5rem; + + @media (max-width: 768px) { + padding: 1rem; + gap: 1rem; } } .section-header { - margin-bottom: 2rem; - padding-bottom: 0.5rem; - border-bottom: var(--card-border); - border-bottom-color: var(--p-content-border-color); + margin-bottom: 0.25rem; } .section-title { @@ -33,29 +39,30 @@ margin: 0; } +.section-body { + padding-left: 1rem; + + @media (max-width: 768px) { + padding-left: 0.5rem; + } +} + .provider-groups-container { display: grid; - grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); + grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; - @media (max-width: 1200px) { - grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); - } - @media (max-width: 768px) { grid-template-columns: 1fr; - gap: 0.875rem; + gap: 0.75rem; } } .provider-group { - background: var(--card-background); - border: 1px solid var(--p-content-border-color); - border-radius: 8px; - padding: 0.875rem; - transition: all 0.2s ease; - display: flex; - flex-direction: column; + padding: 0.875rem 1rem; + border-radius: 6px; + border-left: 3px solid var(--primary-color); + background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%); @media (max-width: 768px) { padding: 0.75rem; @@ -66,75 +73,49 @@ display: flex; align-items: center; gap: 0.5rem; - margin-bottom: 0.75rem; - padding-bottom: 0.625rem; - border-bottom: 1px solid var(--p-content-border-color); + margin-bottom: 0.625rem; + padding-bottom: 0.5rem; + border-bottom: 1px dashed var(--p-content-border-color); +} - .group-icon { - color: var(--primary-color); - font-size: 0.9375rem; - flex-shrink: 0; - } +.group-icon { + color: var(--primary-color); + font-size: 0.875rem; + flex-shrink: 0; +} - .group-label { - font-size: 0.9375rem; - font-weight: 600; - color: var(--text-color); - margin: 0; - letter-spacing: -0.01em; - } +.group-label { + font-size: 0.875rem; + font-weight: 600; + color: var(--text-color); + margin: 0; } .field-list { display: flex; flex-direction: column; - gap: 0.5rem; + gap: 0.25rem; } -.field-checkbox { +.field-item { display: flex; align-items: center; gap: 0.625rem; - padding: 0.2rem 0.5rem; - border-radius: 5px; + padding: 0.3125rem 0.5rem; + border-radius: 4px; transition: background-color 0.15s ease; &:hover { - background: color-mix(in srgb, var(--p-surface-800) 70%, transparent 30%); + background: color-mix(in srgb, var(--primary-color) 8%, transparent 92%); } label { cursor: pointer; - font-size: 0.875rem; + font-size: 0.9375rem; font-weight: 400; user-select: none; color: var(--text-color); - margin-bottom: 0; + margin: 0; flex: 1; } - - @media (max-width: 768px) { - padding: 0.375rem 0.4rem; - } -} - -.section-body { - - > .setting-item { - margin-bottom: 0.75rem; - } -} - -.settings-card { - display: flex; - flex-direction: column; - background: var(--card-background); - border: 1px solid var(--p-content-border-color); - border-radius: 8px; - padding: 1.5rem; - - @media (max-width: 768px) { - padding: 0.75rem; - gap: 0.875rem; - } } diff --git a/booklore-ui/src/app/features/settings/global-preferences/metadata-match-weights/metadata-match-weights-component.html b/booklore-ui/src/app/features/settings/global-preferences/metadata-match-weights/metadata-match-weights-component.html index 968297856..29e8c3c32 100644 --- a/booklore-ui/src/app/features/settings/global-preferences/metadata-match-weights/metadata-match-weights-component.html +++ b/booklore-ui/src/app/features/settings/global-preferences/metadata-match-weights/metadata-match-weights-component.html @@ -10,64 +10,56 @@
-
-
-
-
- Recalculate Metadata Scores - - - Recomputes match scores for all books based on the latest weights. - -
+
+
+
+ Recalculate Metadata Scores + Recomputes match scores for all books based on the latest weights. +
+ + +
+
+ +
+
+ +

Field Weights

+
+ +
+
+ @for (key of orderedKeys; track key) { +
+ + +
+ } +
+
+ [disabled]="isSaving" + (click)="save()"> +
-
- -
-
- -

Metadata Field Weights

-
- - -
- @for (key of orderedKeys; track key) { -
- - -
- } -
-
- - -
- -
+
diff --git a/booklore-ui/src/app/features/settings/global-preferences/metadata-match-weights/metadata-match-weights-component.scss b/booklore-ui/src/app/features/settings/global-preferences/metadata-match-weights/metadata-match-weights-component.scss index 24cd64e33..566240c74 100644 --- a/booklore-ui/src/app/features/settings/global-preferences/metadata-match-weights/metadata-match-weights-component.scss +++ b/booklore-ui/src/app/features/settings/global-preferences/metadata-match-weights/metadata-match-weights-component.scss @@ -1,34 +1,20 @@ -.custom-border { - border: 1px solid var(--border-color); - border-radius: var(--card-border); -} - .settings-card { display: flex; flex-direction: column; - gap: 1rem; + gap: 1.25rem; background: var(--card-background); border: 1px solid var(--p-content-border-color); border-radius: 8px; padding: 1.5rem; @media (max-width: 768px) { - padding: 0.75rem; - gap: 0.875rem; - } -} - -.preferences-section { - @media (min-width: 768px) { - padding: 0 0.5rem; + padding: 1rem; + gap: 1rem; } } .section-header { - margin-bottom: 2rem; - padding-bottom: 0.5rem; - border-bottom: var(--card-border); - border-bottom-color: var(--p-content-border-color); + margin-bottom: 0.25rem; } .section-title { @@ -53,25 +39,29 @@ margin: 0; } -.action-section { - background: var(--card-background); - border: 1px solid var(--p-content-border-color); - border-radius: 8px; - padding: 1rem; - margin-bottom: 1rem; - transition: all 0.2s ease; - - &:hover { - border-color: color-mix(in srgb, var(--primary-color) 40%, var(--p-content-border-color) 60%); - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); - } +.section-body { + display: flex; + flex-direction: column; + gap: 2rem; + padding-left: 1rem; @media (max-width: 768px) { - padding: 0.875rem; + padding-left: 0.5rem; } } -.action-content { +.setting-item { + padding: 0.875rem 1rem; + border-radius: 6px; + border-left: 3px solid var(--primary-color); + background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%); + + @media (max-width: 768px) { + padding: 0.75rem; + } +} + +.action-row { display: flex; align-items: center; justify-content: space-between; @@ -80,97 +70,80 @@ @media (max-width: 768px) { flex-direction: column; align-items: flex-start; + gap: 0.75rem; } } .action-info { display: flex; flex-direction: column; - gap: 0.375rem; - flex: 1; + gap: 0.125rem; } .action-label { font-size: 0.9375rem; - font-weight: 600; + font-weight: 500; color: var(--text-color); } .action-description { - display: flex; - align-items: center; - gap: 0.375rem; font-size: 0.8125rem; color: var(--p-text-muted-color); line-height: 1.4; - - .pi { - font-size: 0.875rem; - color: var(--primary-color); - } -} - -.weights-section { - background: var(--card-background); - border: 1px solid var(--p-content-border-color); - border-radius: 8px; - padding: 0.875rem; - transition: all 0.2s ease; - - &:hover { - border-color: color-mix(in srgb, var(--primary-color) 40%, var(--p-content-border-color) 60%); - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); - } - - @media (max-width: 768px) { - padding: 0.75rem; - } } .weights-header { display: flex; align-items: center; gap: 0.5rem; - margin-bottom: 1rem; - padding-bottom: 0.625rem; - border-bottom: 1px solid var(--p-content-border-color); + margin-bottom: 0.75rem; +} - .weights-icon { - color: var(--primary-color); - font-size: 0.9375rem; - flex-shrink: 0; - } +.weights-icon { + color: var(--primary-color); + font-size: 0.875rem; + flex-shrink: 0; +} - .weights-label { - font-size: 0.9375rem; - font-weight: 600; - color: var(--text-color); - margin: 0; - letter-spacing: -0.01em; - } +.weights-label { + font-size: 0.9375rem; + font-weight: 500; + color: var(--text-color); + margin: 0; } .weights-form { display: flex; flex-direction: column; - gap: 1rem; + gap: 0.75rem; } .weights-grid { display: grid; - grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); - gap: 1rem; + grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); + gap: 0.625rem; + padding-top: 0.5rem; + border-top: 1px dashed var(--p-content-border-color); @media (max-width: 768px) { + grid-template-columns: 1fr 1fr; + gap: 0.5rem; + } + + @media (max-width: 400px) { grid-template-columns: 1fr; - gap: 0.75rem; } } .weight-field { display: flex; - flex-direction: column; - gap: 0.375rem; + align-items: center; + justify-content: space-between; + gap: 0.5rem; + padding: 0.5rem 0.625rem; + background: var(--ground-background); + border: 1px solid var(--p-content-border-color); + border-radius: 4px; .field-label { font-size: 0.875rem; @@ -178,26 +151,21 @@ color: var(--text-color); text-transform: capitalize; } + + ::ng-deep p-inputnumber { + width: 6rem; + } } .form-actions { display: flex; justify-content: flex-end; - padding-top: 1rem; - border-top: 1px solid var(--p-content-border-color); + padding-top: 0.75rem; + border-top: 1px dashed var(--p-content-border-color); @media (max-width: 768px) { - justify-content: stretch; - p-button { width: 100%; } } } - -.section-body { - - > .setting-item { - margin-bottom: 0.75rem; - } -} diff --git a/booklore-ui/src/app/features/settings/global-preferences/metadata-provider-settings/metadata-provider-settings.component.html b/booklore-ui/src/app/features/settings/global-preferences/metadata-provider-settings/metadata-provider-settings.component.html index b5af4a656..924e38d15 100644 --- a/booklore-ui/src/app/features/settings/global-preferences/metadata-provider-settings/metadata-provider-settings.component.html +++ b/booklore-ui/src/app/features/settings/global-preferences/metadata-provider-settings/metadata-provider-settings.component.html @@ -11,173 +11,143 @@
-
+

Providers with Configuration

-
-
- -
-
-
-
- - -
- @if (amazonEnabled) { -
-
- - - -
- -
-
- - -
-

- - Providing your Amazon session cookie allows the app to access richer book metadata and bypass rate limits. -

- -
-
- } +
+
+
+ +
-
-
- -
-
- -
-
-
-
- - -
- @if (googleEnabled) { -
-
- - - -
+ @if (amazonEnabled) { +
+
+ + +
- } -
-
-
- -
-
- -
-
-
-
- - - -
- @if (hardcoverEnabled) { -
-
-
- - -
- +
+
+ +
+

Providing your Amazon session cookie allows the app to access richer book metadata and bypass rate limits.

+
- } -
-
-
- -
-
- -
-
-
-
- -
- @if (comicvineEnabled) { -
-
+ } +
+ +
+
+ + +
+ @if (googleEnabled) { +
+
+ + + +
+
+ } +
+ +
+
+ + + +
+ @if (hardcoverEnabled) { +
+
+
- +
+
- } +
+ } +
+ +
+
+ +
+ @if (comicvineEnabled) { +
+
+ + +
+
+ }
-
+

Ready-to-Use Providers

-
-
- +
+
+
-
-
- +
+
+
-
-
- +
+
+
-
-
- +
+
+
diff --git a/booklore-ui/src/app/features/settings/global-preferences/metadata-provider-settings/metadata-provider-settings.component.scss b/booklore-ui/src/app/features/settings/global-preferences/metadata-provider-settings/metadata-provider-settings.component.scss index 6b55445ac..e896e89ec 100644 --- a/booklore-ui/src/app/features/settings/global-preferences/metadata-provider-settings/metadata-provider-settings.component.scss +++ b/booklore-ui/src/app/features/settings/global-preferences/metadata-provider-settings/metadata-provider-settings.component.scss @@ -4,11 +4,23 @@ gap: 1.5rem; } +.settings-card { + display: flex; + flex-direction: column; + gap: 1.25rem; + background: var(--card-background); + border: 1px solid var(--p-content-border-color); + border-radius: 8px; + padding: 1.5rem; + + @media (max-width: 768px) { + padding: 1rem; + gap: 1rem; + } +} + .section-header { - margin-bottom: 1rem; - padding-bottom: 0.5rem; - border-bottom: var(--card-border); - border-bottom-color: var(--p-content-border-color); + margin-bottom: 0.25rem; } .section-title { @@ -33,58 +45,53 @@ margin: 0; } -.settings-card { +.section-body { display: flex; flex-direction: column; - gap: 1rem; - background: var(--card-background); - border: 1px solid var(--p-content-border-color); - border-radius: 8px; - padding: 1.5rem; + gap: 2rem; + padding-left: 1rem; @media (max-width: 768px) { - padding: 0.75rem; - gap: 0.875rem; + padding-left: 0.5rem; } } +.configurable-providers-section { + display: flex; + flex-direction: column; + gap: 0.5rem; +} + +.configurable-providers-list { + display: flex; + flex-direction: column; + gap: 0.75rem; +} + +.simple-providers-section { + display: flex; + flex-direction: column; + gap: 0.5rem; +} + .provider-group-title { - font-size: 1rem; + font-size: 0.875rem; font-weight: 600; - color: var(--text-color); - margin: 1rem 0 1rem 0; - padding-bottom: 0.5rem; - border-bottom: 1px solid var(--p-content-border-color); -} - -.provider-group-description { - font-size: 0.8125rem; color: var(--p-text-muted-color); - margin: 0 0 0.5rem 0; + text-transform: uppercase; + letter-spacing: 0.025em; + margin: 0 0 0.25rem 0; } -.simple-providers-grid { - display: grid; - grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); - gap: 1rem; - margin-top: 0; - - @media (max-width: 768px) { - grid-template-columns: 1fr; - gap: 0.75rem; - } -} - -.simple-provider-item { - background: var(--p-surface-800); - border: 1px solid var(--p-content-border-color); +.setting-item { + padding: 0.875rem 1rem; border-radius: 6px; - padding: 0.75rem 1rem; - transition: all 0.2s ease; + border-left: 3px solid var(--primary-color); + background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%); + transition: border-color 0.2s ease, background 0.2s ease; &:hover { - border-color: var(--primary-color); - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); + background: color-mix(in srgb, var(--ground-background) 40%, var(--p-surface-800) 60%); } @media (max-width: 768px) { @@ -92,259 +99,108 @@ } } -.simple-provider-header { - display: flex; - align-items: center; - justify-content: space-between; - gap: 1rem; - - .setting-label { - margin: 0; - font-weight: 500; - color: var(--text-color); - font-size: 0.9375rem; - } -} - -.setting-item { - display: flex; - flex-direction: column; - padding-bottom: 1rem; - margin-bottom: 0; - border-bottom: 1px solid var(--p-content-border-color); - - &:last-child { - border-bottom: none; - padding-bottom: 0; - margin-bottom: 0; - } - - &.setting-item-indented { - display: inline-flex; - margin-top: 0.5rem; - margin-left: 0; - margin-bottom: 0; - padding: 0.75rem 0.75rem 0.625rem 0.75rem; - border-left: 3px solid var(--primary-color); - border-bottom: none; - background: var(--p-surface-800); - border-radius: 6px; - position: relative; - - &::before { - display: none; - } - } - - @media (max-width: 768px) { - gap: 0.5rem; - padding-bottom: 1rem; - margin-bottom: 0; - - &.setting-item-indented { - max-width: 100%; - margin-left: 0; - padding: 0.625rem 0.625rem 0.5rem 0.625rem; - } - } -} - -.setting-info { - flex: 1; - min-width: 0; - display: flex; - flex-direction: column; - gap: 0; - - .setting-label { - display: block; - font-weight: 600; - color: var(--text-color); - font-size: 1rem; - margin-bottom: 0.375rem; - letter-spacing: -0.01em; - } - - .setting-label-row { - display: flex; - align-items: center; - gap: 0.75rem; - flex-wrap: wrap; - - .setting-label { - margin-bottom: 0; - flex-shrink: 0; - font-size: 0.9375rem; - color: var(--text-color-secondary); - } - } - - .setting-description { - display: flex; - align-items: flex-start; - gap: 0.375rem; - color: var(--p-text-muted-color); - font-size: 0.875rem; - line-height: 1.5; - margin: 0 0 0.5rem 0; - - .pi { - margin-top: 0.125rem; - flex-shrink: 0; - font-size: 0.875rem; - } - - .pi-info-circle { - color: var(--primary-color); - } - } -} - -.providers-list { - display: flex; - flex-direction: column; - gap: 1rem; -} - -.provider-control { - display: flex; - align-items: center; - justify-content: space-between; - gap: 1rem; - - @media (max-width: 768px) { - flex-direction: column; - align-items: flex-start; - gap: 0.75rem; - } -} - -.provider-info { +.setting-header { display: flex; align-items: center; gap: 0.75rem; - - .provider-label { - font-weight: 500; - color: var(--p-text-color); - } } -.provider-config { - margin-top: 1rem; - padding-left: 2rem; +.setting-label { + font-weight: 500; + color: var(--text-color); + font-size: 0.9375rem; +} + +.setting-options { + margin-top: 0.75rem; + padding-top: 0.75rem; + border-top: 1px dashed var(--p-content-border-color); display: flex; flex-direction: column; gap: 1rem; - align-items: flex-start; - - @media (max-width: 768px) { - padding-left: 0; - } -} - -.provider-config-fields { - display: flex; - flex-direction: column; - gap: 1rem; - margin-top: 0.5rem; - width: 100%; } .config-field { display: flex; flex-direction: column; + gap: 0.375rem; +} + +.config-label { + font-weight: 500; + color: var(--text-color); + font-size: 0.8125rem; +} + +.config-label-row { + display: flex; + align-items: center; gap: 0.5rem; +} - .config-label { - font-weight: 500; - color: var(--text-color); - font-size: 0.875rem; +.config-description { + color: var(--p-text-muted-color); + font-size: 0.8125rem; + line-height: 1.4; + margin: 0; +} + +::ng-deep .config-select { + width: 100%; + max-width: 20rem; +} + +.config-input { + width: 100%; + max-width: 40rem; + padding: 0.375rem 0.625rem; + border: 1px solid var(--p-content-border-color); + border-radius: 4px; + background: var(--ground-background); + color: var(--text-color); + font-size: 0.875rem; + transition: border-color 0.2s ease; + + &:hover { + border-color: var(--primary-color); } - .config-label-row { - display: flex; - align-items: center; - gap: 0.625rem; - - .config-label { - margin: 0; - } + &:focus { + outline: none; + border-color: var(--primary-color); } - .config-description { - display: flex; - align-items: flex-start; - gap: 0.375rem; + &::placeholder { color: var(--p-text-muted-color); - font-size: 0.8125rem; - line-height: 1.5; - margin: 0 0 0.5rem 0; + } +} - .pi { - margin-top: 0.125rem; - flex-shrink: 0; - font-size: 0.8125rem; - color: var(--primary-color); - } +.simple-providers-grid { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); + gap: 0.75rem; + + @media (max-width: 768px) { + grid-template-columns: 1fr 1fr; + gap: 0.5rem; } - ::ng-deep .config-select { - width: 100%; - max-width: 20rem; + @media (max-width: 480px) { + grid-template-columns: 1fr; } +} - .config-input { - width: 100%; - max-width: 40rem; - padding: 0.375rem 0.625rem; - border: 1px solid var(--p-content-border-color); - border-radius: 6px; - background: var(--ground-background); - color: var(--text-color); - font-size: 0.9375rem; - transition: all 0.2s ease; +.simple-provider { + padding: 0.625rem 0.875rem; - &:hover { - border-color: var(--primary-color); - } - - &:focus { - outline: none; - border-color: var(--primary-color); - box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 15%, transparent 85%); - } - - &::placeholder { - color: var(--p-text-muted-color); - } + @media (max-width: 768px) { + padding: 0.5rem 0.75rem; } } .setting-actions { display: flex; justify-content: flex-end; - margin-top: 1.5rem; - padding-top: 1rem; + padding-top: 0.5rem; border-top: 1px solid var(--p-content-border-color); } - -.section-body { - display: flex; - flex-direction: column; - gap: 0; - padding-left: 1rem; - - > div { - display: flex; - flex-direction: column; - } - - > div > .setting-item { - margin-bottom: 1rem; - } - - > .setting-item { - margin-bottom: 0; - } -} diff --git a/booklore-ui/src/app/features/settings/metadata-settings/metadata-persistence-settings/metadata-persistence-settings-component.html b/booklore-ui/src/app/features/settings/metadata-settings/metadata-persistence-settings/metadata-persistence-settings-component.html index d7a8d1b09..5f889e9ad 100644 --- a/booklore-ui/src/app/features/settings/metadata-settings/metadata-persistence-settings/metadata-persistence-settings-component.html +++ b/booklore-ui/src/app/features/settings/metadata-settings/metadata-persistence-settings/metadata-persistence-settings-component.html @@ -27,22 +27,18 @@
- -

- - Write metadata directly into EPUB files when editing book information. -

-
-
- - - -
- @if (metadataPersistence.saveToOriginalFile.epub.enabled) { +
+ + + +
+

Write metadata directly into EPUB files when editing book information.

+ @if (metadataPersistence.saveToOriginalFile.epub.enabled) { +
- + + MB + class="pi pi-info-circle" + pTooltip="Only files up to this size will be updated. Larger files are ignored." + tooltipPosition="right"> +
- } -
+
+ }
- -

- - Write metadata directly into CBX files when editing book information. -

-
-
- - - -
- @if (metadataPersistence.saveToOriginalFile.cbx.enabled) { +
+ + + +
+

Write metadata directly into CBX files when editing book information.

+ @if (metadataPersistence.saveToOriginalFile.cbx.enabled) { +
- + + MB + class="pi pi-info-circle" + pTooltip="Only files up to this size will be updated. Larger files are ignored." + tooltipPosition="right"> +
- } -
+
+ }
- +
+ + + +

- - Write metadata directly into PDF files when editing book information.
- Note: PDFs do not support embedded covers, and only a limited set of metadata can be updated (Title, Authors, Publisher, Categories, Description, Language, Published Date). This is a limitation of the PDF format.
+ Write metadata directly into PDF files when editing book information. + PDFs do not support embedded covers. Only Title, Authors, Publisher, Categories, Description, Language, and Published Date can be updated.

-
-
- - - -
- @if (metadataPersistence.saveToOriginalFile.pdf.enabled) { + @if (metadataPersistence.saveToOriginalFile.pdf.enabled) { +
- + + MB + class="pi pi-info-circle" + pTooltip="Only files up to this size will be updated. Larger files are ignored." + tooltipPosition="right"> +
- } -
+
+ }
- -

- - Automatically move and rename files according to their library's naming pattern when metadata is updated, either through manual editing or auto-fetch operations. -

-
-
- - - -
+
+ + +
+

Automatically move and rename files according to their library's naming pattern when metadata is updated.

diff --git a/booklore-ui/src/app/features/settings/metadata-settings/metadata-persistence-settings/metadata-persistence-settings-component.scss b/booklore-ui/src/app/features/settings/metadata-settings/metadata-persistence-settings/metadata-persistence-settings-component.scss index d19d03dd3..c3077cb62 100644 --- a/booklore-ui/src/app/features/settings/metadata-settings/metadata-persistence-settings/metadata-persistence-settings-component.scss +++ b/booklore-ui/src/app/features/settings/metadata-settings/metadata-persistence-settings/metadata-persistence-settings-component.scss @@ -1,8 +1,20 @@ +.settings-card { + display: flex; + flex-direction: column; + gap: 1.25rem; + background: var(--card-background); + border: 1px solid var(--p-content-border-color); + border-radius: 8px; + padding: 1.5rem; + + @media (max-width: 768px) { + padding: 1rem; + gap: 1rem; + } +} + .section-header { - margin-bottom: 1rem; - padding-bottom: 0.5rem; - border-bottom: var(--card-border); - border-bottom-color: var(--p-content-border-color); + margin-bottom: 0.25rem; } .section-title { @@ -27,193 +39,151 @@ margin: 0; } -.settings-card { - display: flex; - flex-direction: column; - gap: 1rem; - background: var(--card-background); - border: 1px solid var(--p-content-border-color); - border-radius: 8px; - padding: 1.5rem; - - @media (max-width: 768px) { - padding: 0.75rem; - gap: 0.875rem; - } -} - .section-notice { display: flex; flex-direction: column; - gap: 1rem; -} - -.section-body { - padding-left: 1rem; - > .setting-item { - margin-bottom: 0.75rem; - } -} - -.setting-item { - padding-bottom: 1rem; - border-bottom: 1px solid var(--p-content-border-color); - - &:last-child { - border-bottom: none; - padding-bottom: 0; - } - - &.setting-item-indented { - margin-top: 0.5rem; - margin-left: 0; - padding: 0.75rem 0.75rem 0.625rem 0.75rem; - border-left: 3px solid var(--primary-color); - border-bottom: none; - background: var(--p-surface-800); - border-radius: 6px; - position: relative; - - &::before { - display: none; - } - } - - @media (max-width: 768px) { - gap: 0.5rem; - - &.setting-item-indented { - margin-left: 0; - padding: 0.625rem 0.625rem 0.5rem 0.625rem; - } - } - - .setting-label { - display: block; - font-weight: 600; - color: var(--text-color); - font-size: 1rem; - margin-bottom: 0.375rem; - letter-spacing: -0.01em; - } - - .setting-label-row { - display: flex; - align-items: center; - gap: 0.75rem; - flex-wrap: wrap; - - .setting-label { - margin-bottom: 0; - flex-shrink: 0; - font-size: 0.9375rem; - color: var(--text-color-secondary); - } - } - - .setting-description { - display: flex; - align-items: flex-start; - gap: 0.375rem; - color: var(--p-text-muted-color); - font-size: 0.875rem; - line-height: 1.5; - margin: 0 0 0.5rem 0; - - .pi { - margin-top: 0.125rem; - flex-shrink: 0; - font-size: 0.875rem; - color: var(--primary-color); - } - } + gap: 0.75rem; } .warning-notice { display: flex; align-items: flex-start; gap: 0.75rem; - font-size: 0.9375rem; + font-size: 0.875rem; line-height: 1.5; padding: 0.75rem 1rem; - border-radius: 8px; + border-radius: 6px; background: color-mix(in srgb, var(--ground-background) 85%, var(--p-red-600) 15%); - border: 1px solid color-mix(in srgb, var(--p-red-500) 30%, transparent 70%); border-left: 3px solid var(--p-red-500); color: var(--text-color); - box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); .pi-exclamation-triangle { color: var(--p-red-400); margin-top: 0.125rem; flex-shrink: 0; - font-size: 1.125rem; } strong { - font-weight: 700; + font-weight: 600; color: var(--p-red-300); } @media (max-width: 768px) { padding: 0.625rem 0.75rem; - gap: 0.625rem; + font-size: 0.8125rem; } } .info-notice.unsupported-formats-note { - background: color-mix(in srgb, var(--ground-background) 90%, var(--p-blue-600) 10%); - border: 1px solid color-mix(in srgb, var(--p-blue-400) 30%, transparent 70%); - border-left: 3px solid var(--p-blue-400); - color: var(--text-color); - padding: 0.75rem 1rem; - border-radius: 8px; display: flex; align-items: flex-start; gap: 0.75rem; - box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); - margin-bottom: 1rem; + font-size: 0.875rem; + line-height: 1.5; + padding: 0.75rem 1rem; + border-radius: 6px; + background: color-mix(in srgb, var(--ground-background) 90%, var(--p-blue-600) 10%); + border-left: 3px solid var(--p-blue-400); + color: var(--text-color); .pi-info-circle { color: var(--p-blue-400); margin-top: 0.125rem; flex-shrink: 0; - font-size: 1.125rem; } strong { color: var(--p-blue-300); - font-weight: 700; + font-weight: 600; } @media (max-width: 768px) { padding: 0.625rem 0.75rem; - gap: 0.625rem; + font-size: 0.8125rem; } } +.section-body { + display: flex; + flex-direction: column; + gap: 1rem; + padding-left: 1rem; + + @media (max-width: 768px) { + padding-left: 0.5rem; + } +} + +.setting-item { + padding: 0.875rem 1rem; + border-radius: 6px; + border-left: 3px solid var(--primary-color); + background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%); + transition: border-color 0.2s ease, background 0.2s ease; + + &:hover { + background: color-mix(in srgb, var(--ground-background) 40%, var(--p-surface-800) 60%); + } + + @media (max-width: 768px) { + padding: 0.75rem; + } +} + +.setting-header { + display: flex; + align-items: center; + gap: 0.75rem; + margin-bottom: 0.25rem; +} + +.setting-label { + font-weight: 500; + color: var(--text-color); + font-size: 0.9375rem; +} + +.setting-description { + color: var(--p-text-muted-color); + font-size: 0.8125rem; + line-height: 1.4; + margin: 0; +} + +.setting-note { + display: block; + margin-top: 0.25rem; + font-style: italic; + opacity: 0.85; +} + +.setting-options { + margin-top: 0.75rem; + padding-top: 0.75rem; + border-top: 1px dashed var(--p-content-border-color); +} + .filesize-input { display: flex; align-items: center; - gap: 0.625rem; - margin-top: 0.5rem; + gap: 0.5rem; label { - font-size: 0.875rem; - font-weight: 500; - color: var(--text-color-secondary); + font-size: 0.8125rem; + color: var(--p-text-muted-color); white-space: nowrap; } .filesize-field { - width: 100px; - padding: 0.375rem 0.625rem; + width: 70px; + padding: 0.375rem 0.5rem; border: 1px solid var(--p-content-border-color); - border-radius: 6px; + border-radius: 4px; background: var(--ground-background); color: var(--text-color); - font-size: 0.9375rem; - transition: all 0.2s ease; + font-size: 0.875rem; + text-align: center; + transition: border-color 0.2s ease; &:hover { border-color: var(--primary-color); @@ -222,11 +192,23 @@ &:focus { outline: none; border-color: var(--primary-color); - box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 15%, transparent 85%); } } - @media (max-width: 768px) { - gap: 0.5rem; + .filesize-unit { + font-size: 0.8125rem; + color: var(--p-text-muted-color); + } + + .pi-info-circle { + color: var(--p-text-muted-color); + font-size: 0.875rem; + cursor: help; + opacity: 0.7; + transition: opacity 0.2s ease; + + &:hover { + opacity: 1; + } } } diff --git a/booklore-ui/src/app/features/settings/metadata-settings/metadata-settings-component.html b/booklore-ui/src/app/features/settings/metadata-settings/metadata-settings-component.html index af8a5bb83..97000aea4 100644 --- a/booklore-ui/src/app/features/settings/metadata-settings/metadata-settings-component.html +++ b/booklore-ui/src/app/features/settings/metadata-settings/metadata-settings-component.html @@ -10,20 +10,18 @@

- When enabled, metadata will be automatically retrieved from your configured sources whenever new files are added to the Bookdrop folder. Please note that processing a large number of files simultaneously may increase the time required for metadata fetching. + When enabled, metadata will be automatically retrieved from your configured sources whenever new files are added to the Bookdrop folder. Please note that processing a large number of files simultaneously may increase the time required for metadata fetching.

-
-
- - - -
+
+ + +
diff --git a/booklore-ui/src/app/features/settings/metadata-settings/metadata-settings-component.scss b/booklore-ui/src/app/features/settings/metadata-settings/metadata-settings-component.scss index d58eb19bb..1fa5e623c 100644 --- a/booklore-ui/src/app/features/settings/metadata-settings/metadata-settings-component.scss +++ b/booklore-ui/src/app/features/settings/metadata-settings/metadata-settings-component.scss @@ -1,198 +1,95 @@ -.settings-header { - margin-top: 1rem; - margin-bottom: 2rem; -} - -.settings-title { - display: flex; - align-items: center; - gap: 0.75rem; - font-size: 1.25rem; - font-weight: 700; - color: var(--p-text-color); - margin: 0 0 0.75rem 0; - - .pi { - color: var(--p-primary-color); - font-size: 1.25rem; - } -} - -.settings-description { - color: var(--p-text-muted-color); - font-size: 0.875rem; - line-height: 1.5; - margin-bottom: 1rem; -} - -.settings-content { +.settings-card { display: flex; flex-direction: column; - gap: 2rem; + gap: 1.25rem; + background: var(--card-background); + border: 1px solid var(--p-content-border-color); + border-radius: 8px; + padding: 1.5rem; + + @media (max-width: 768px) { + padding: 1rem; + gap: 1rem; + } } .section-header { - margin-bottom: 1rem; - - .section-description { - color: var(--p-text-muted-color); - font-size: 0.875rem; - line-height: 1.5; - margin: 0.5rem 0 0 0; - display: flex; - align-items: flex-start; - gap: 0.5rem; - - .pi { - margin-top: 0.125rem; - flex-shrink: 0; - } - - .pi-exclamation-triangle { - color: var(--p-orange-500); - } - - .pi-info-circle { - color: var(--p-primary-color); - } - } + margin-bottom: 0.25rem; } .section-title { display: flex; align-items: center; gap: 0.5rem; - font-size: 1.125rem; + font-size: 1.25rem; font-weight: 600; - color: var(--p-text-color); - margin: 0; + color: var(--text-color); + margin: 0 0 0.5rem 0; .pi { - color: var(--p-primary-color); + color: var(--primary-color); + font-size: 1.125rem; } } -.settings-card { - border: 1px solid var(--p-content-border-color); - border-radius: 8px; - background: var(--p-content-background); - padding: 1.5rem; +.section-description { display: flex; - flex-direction: column; - gap: 1rem; + align-items: flex-start; + gap: 0.5rem; + font-size: 0.875rem; + line-height: 1.5; + color: var(--p-text-muted-color); + margin: 0; - .section-header { - padding-bottom: 1rem; - border-bottom: 1px solid var(--p-content-border-color); - margin-bottom: 0; + .pi { + margin-top: 0.125rem; + flex-shrink: 0; + } - + .setting-item { - margin-top: 0.5rem; - } + .pi-exclamation-triangle { + color: var(--p-orange-500); + } + + .pi-info-circle { + color: var(--primary-color); } } .section-body { + display: flex; + flex-direction: column; + gap: 1rem; padding-left: 1rem; - > .setting-item { - margin-bottom: 0.75rem; + @media (max-width: 768px) { + padding-left: 0.5rem; } } .setting-item { - display: flex; - align-items: flex-start; - gap: 2rem; + padding: 0.875rem 1rem; + border-radius: 6px; + border-left: 3px solid var(--primary-color); + background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%); + transition: border-color 0.2s ease, background 0.2s ease; - &:last-child { - border-bottom: none; - padding-bottom: 0; - } - - &.setting-item-indented { - margin-top: 0.5rem; - margin-left: 0; - padding: 0.75rem 0.75rem 0.625rem 0.75rem; - border-left: 3px solid var(--primary-color); - border-bottom: none; - background: var(--p-surface-800); - border-radius: 6px; - position: relative; - - &::before { - display: none; - } + &:hover { + background: color-mix(in srgb, var(--ground-background) 40%, var(--p-surface-800) 60%); } @media (max-width: 768px) { - flex-direction: column; - gap: 1rem; - - &.setting-item-indented { - margin-left: 0; - padding: 0.625rem 0.625rem 0.5rem 0.625rem; - } - } - - .setting-label { - display: block; - font-weight: 600; - color: var(--p-text-color); - font-size: 1rem; - margin-bottom: 0.375rem; - letter-spacing: -0.01em; - } - - .setting-label-row { - display: flex; - align-items: center; - gap: 1.25rem; - flex-wrap: wrap; - - .setting-label { - margin-bottom: 0; - flex-shrink: 0; - font-size: 1rem; - color: var(--p-text-color); - font-weight: 600; - letter-spacing: -0.01em; - } - } - - .setting-description { - display: flex; - align-items: flex-start; - gap: 0.5rem; - color: var(--p-text-muted-color); - font-size: 0.875rem; - line-height: 1.5; - margin: 0; - - .pi { - margin-top: 0.125rem; - flex-shrink: 0; - } - - .pi-exclamation-triangle { - color: var(--p-orange-500); - } - - .pi-info-circle { - color: var(--p-primary-color); - } + padding: 0.75rem; } } -.setting-control { - flex-shrink: 0; +.setting-header { display: flex; - flex-direction: column; + align-items: center; gap: 0.75rem; - align-items: flex-end; +} - @media (max-width: 768px) { - align-items: flex-start; - width: 100%; - } +.setting-label { + font-weight: 500; + color: var(--text-color); + font-size: 0.9375rem; } diff --git a/booklore-ui/src/app/features/settings/metadata-settings/public-reviews-settings/public-reviews-settings-component.html b/booklore-ui/src/app/features/settings/metadata-settings/public-reviews-settings/public-reviews-settings-component.html index 55af88951..b9f865edf 100644 --- a/booklore-ui/src/app/features/settings/metadata-settings/public-reviews-settings/public-reviews-settings-component.html +++ b/booklore-ui/src/app/features/settings/metadata-settings/public-reviews-settings/public-reviews-settings-component.html @@ -11,82 +11,67 @@
- -
-
- - - -
+
+ + +
@if (publicReviewSettings.downloadEnabled) {
- -

- - - Automatically fetch reviews when you open a book's details page. When disabled, reviews will only be downloaded manually or during metadata refresh, reducing background network activity and improving performance. - -

-
-
- - - -
+
+ + +
+

Automatically fetch reviews when you open a book's details page. When disabled, reviews will only be downloaded manually or during metadata refresh.

- -

- - - Configure which platforms to download reviews from and set limits for each source. - -

-
-
- @for (provider of publicReviewSettings.providers; track provider.provider) { -
-
- -
+
+ +
+

Configure which platforms to download reviews from and set limits for each source.

+ @if (publicReviewSettings.providers.length > 0) { +
+
+ @for (provider of publicReviewSettings.providers; track provider.provider) { +
+
- @if (provider.enabled) { -
- - -
- } +
+ @if (provider.enabled) { +
+ + +
+ }
-
- } - @if (publicReviewSettings.providers.length === 0) { -
- - No review sources available. Please ensure metadata providers are configured in the Provider Settings section above. -
- } + } +
-
+ } @else { +
+ + No review sources available. Please ensure metadata providers are configured in the Provider Settings section above. +
+ }
}
diff --git a/booklore-ui/src/app/features/settings/metadata-settings/public-reviews-settings/public-reviews-settings-component.scss b/booklore-ui/src/app/features/settings/metadata-settings/public-reviews-settings/public-reviews-settings-component.scss index b5f1afe54..1c658582b 100644 --- a/booklore-ui/src/app/features/settings/metadata-settings/public-reviews-settings/public-reviews-settings-component.scss +++ b/booklore-ui/src/app/features/settings/metadata-settings/public-reviews-settings/public-reviews-settings-component.scss @@ -1,31 +1,20 @@ .settings-card { display: flex; flex-direction: column; - gap: 1rem; + gap: 1.25rem; background: var(--card-background); border: 1px solid var(--p-content-border-color); border-radius: 8px; padding: 1.5rem; @media (max-width: 768px) { - padding: 0.75rem; - gap: 0.875rem; + padding: 1rem; + gap: 1rem; } } .section-header { - margin-bottom: 1rem; - padding-bottom: 0.5rem; - border-bottom: var(--card-border); - border-bottom-color: var(--p-content-border-color); -} - -.section-body { - padding-left: 1rem; - - > .setting-item { - margin-bottom: 0.75rem; - } + margin-bottom: 0.25rem; } .section-title { @@ -50,100 +39,26 @@ margin: 0; } +.section-body { + display: flex; + flex-direction: column; + gap: 1rem; + padding-left: 1rem; + + @media (max-width: 768px) { + padding-left: 0.5rem; + } +} + .setting-item { - padding-bottom: 1rem; - border-bottom: 1px solid var(--p-content-border-color); - - &:last-child { - border-bottom: none; - padding-bottom: 0; - } - - &.setting-item-indented { - margin-top: 0.5rem; - margin-left: 0; - padding: 0.75rem 0.75rem 0.625rem 0.75rem; - border-left: 3px solid var(--primary-color); - border-bottom: none; - background: var(--p-surface-800); - border-radius: 6px; - position: relative; - - &::before { - display: none; - } - } - - @media (max-width: 768px) { - gap: 0.5rem; - - &.setting-item-indented { - margin-left: 0; - padding: 0.625rem 0.625rem 0.5rem 0.625rem; - } - } - - .setting-label { - display: block; - font-weight: 600; - color: var(--p-text-color); - font-size: 1rem; - margin-bottom: 0.375rem; - letter-spacing: -0.01em; - } - - .setting-label-row { - display: flex; - align-items: center; - gap: 0.75rem; - flex-wrap: wrap; - - .setting-label { - margin-bottom: 0; - flex-shrink: 0; - font-size: 0.9375rem; - color: var(--text-color-secondary); - } - } - - .setting-description { - display: flex; - align-items: flex-start; - gap: 0.375rem; - color: var(--p-text-muted-color); - font-size: 0.875rem; - line-height: 1.5; - margin: 0 0 0.5rem 0; - - .pi { - margin-top: 0.125rem; - flex-shrink: 0; - font-size: 0.875rem; - color: var(--primary-color); - } - } -} - -.providers-list { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); - gap: 0.875rem; - - @media (max-width: 768px) { - grid-template-columns: 1fr; - } -} - -.provider-item { - background: var(--card-background); - border: 1px solid var(--p-content-border-color); - border-radius: 8px; - padding: 0.875rem; - transition: all 0.2s ease; + padding: 0.875rem 1rem; + border-radius: 6px; + border-left: 3px solid var(--primary-color); + background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%); + transition: border-color 0.2s ease, background 0.2s ease; &:hover { - border-color: color-mix(in srgb, var(--primary-color) 40%, var(--p-content-border-color) 60%); - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); + background: color-mix(in srgb, var(--ground-background) 40%, var(--p-surface-800) 60%); } @media (max-width: 768px) { @@ -151,70 +66,103 @@ } } -.provider-label-row { +.setting-header { + display: flex; + align-items: center; + gap: 0.75rem; + margin-bottom: 0.25rem; +} + +.setting-header-standalone { + margin-bottom: 0.25rem; +} + +.setting-label { + font-weight: 500; + color: var(--text-color); + font-size: 0.9375rem; +} + +.setting-description { + color: var(--p-text-muted-color); + font-size: 0.8125rem; + line-height: 1.4; + margin: 0; +} + +.setting-options { + margin-top: 0.75rem; + padding-top: 0.75rem; + border-top: 1px dashed var(--p-content-border-color); +} + +.providers-grid { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); + gap: 0.625rem; + + @media (max-width: 768px) { + grid-template-columns: 1fr 1fr; + gap: 0.5rem; + } + + @media (max-width: 400px) { + grid-template-columns: 1fr; + } +} + +.provider-item { display: flex; align-items: center; justify-content: space-between; - width: 100%; - gap: 1rem; + gap: 0.5rem; + padding: 0.5rem 0.75rem; + background: var(--ground-background); + border: 1px solid var(--p-content-border-color); + border-radius: 4px; + transition: border-color 0.2s ease; - @media (max-width: 768px) { - flex-direction: column; - align-items: stretch; - gap: 0.75rem; + &:hover { + border-color: var(--primary-color); } +} - .provider-label { - font-weight: 500; - color: var(--p-text-color); - font-size: 0.875rem; - flex-shrink: 0; - } +.provider-row { + display: flex; + align-items: center; + gap: 0.5rem; +} - .provider-controls { - display: flex; - align-items: center; - gap: 1rem; - flex-shrink: 0; - - @media (max-width: 768px) { - flex-direction: column; - align-items: stretch; - gap: 0.75rem; - } - } +.provider-label { + font-weight: 500; + color: var(--text-color); + font-size: 0.8125rem; } .max-reviews-control { display: flex; align-items: center; - gap: 0.5rem; + gap: 0.375rem; +} - @media (max-width: 768px) { - justify-content: space-between; - } +.max-reviews-label { + color: var(--p-text-muted-color); + font-size: 0.75rem; +} - .max-reviews-label { - color: var(--p-text-muted-color); - font-size: 0.875rem; - white-space: nowrap; - } +.max-reviews-input { + width: 3rem; + padding: 0.25rem 0.375rem; + border: 1px solid var(--p-content-border-color); + border-radius: 4px; + background: var(--p-surface-800); + color: var(--text-color); + font-size: 0.8125rem; + text-align: center; - .max-reviews-input { - width: 4rem; - padding: 0.375rem 0.5rem; - border: 1px solid var(--p-content-border-color); - border-radius: 4px; - background: var(--p-surface-800); - color: var(--p-text-color); - font-size: 0.875rem; - text-align: center; - - &:focus { - outline: none; - border-color: var(--p-primary-color); - box-shadow: 0 0 0 2px var(--p-primary-color-alpha-20); - } + &:focus { + outline: none; + border-color: var(--primary-color); } } @@ -223,13 +171,15 @@ align-items: center; gap: 0.5rem; color: var(--p-text-muted-color); - font-size: 0.875rem; + font-size: 0.8125rem; font-style: italic; - padding: 1rem; - background: var(--p-surface-100); - border-radius: 6px; + margin-top: 0.5rem; + padding: 0.75rem; + background: var(--ground-background); + border-radius: 4px; .pi { color: var(--p-orange-500); + flex-shrink: 0; } } diff --git a/booklore-ui/src/app/features/settings/view-preferences-parent/filter-preferences/filter-preferences.component.html b/booklore-ui/src/app/features/settings/view-preferences-parent/filter-preferences/filter-preferences.component.html index d96bcc36b..fa6d1342b 100644 --- a/booklore-ui/src/app/features/settings/view-preferences-parent/filter-preferences/filter-preferences.component.html +++ b/booklore-ui/src/app/features/settings/view-preferences-parent/filter-preferences/filter-preferences.component.html @@ -11,48 +11,34 @@
-
+
-

- - Choose the default mode for combining filters selected from the right filter sidebar. -

-
-
-
- - -
-
+

Choose the default mode for combining filters selected from the right filter sidebar.

+
+ +
-
+
-

- - Choose how filter options are sorted in the sidebar. -

-
-
-
- - -
-
+

Choose how filter options are sorted in the sidebar.

+
+ +
diff --git a/booklore-ui/src/app/features/settings/view-preferences-parent/filter-preferences/filter-preferences.component.scss b/booklore-ui/src/app/features/settings/view-preferences-parent/filter-preferences/filter-preferences.component.scss index 6f120e535..e202c21a6 100644 --- a/booklore-ui/src/app/features/settings/view-preferences-parent/filter-preferences/filter-preferences.component.scss +++ b/booklore-ui/src/app/features/settings/view-preferences-parent/filter-preferences/filter-preferences.component.scss @@ -1,8 +1,20 @@ +.settings-card { + display: flex; + flex-direction: column; + gap: 1.25rem; + background: var(--card-background); + border: 1px solid var(--p-content-border-color); + border-radius: 8px; + padding: 1.5rem; + + @media (max-width: 768px) { + padding: 1rem; + gap: 1rem; + } +} + .section-header { - margin-bottom: 1rem; - padding-bottom: 0.5rem; - border-bottom: var(--card-border); - border-bottom-color: var(--p-content-border-color); + margin-bottom: 0.25rem; } .section-title { @@ -28,117 +40,60 @@ } .section-body { - padding-left: 1rem; - - > .setting-item { - margin-bottom: 0.75rem; - } -} - -.settings-card { display: flex; flex-direction: column; gap: 1rem; - background: var(--card-background); - border: 1px solid var(--p-content-border-color); - border-radius: 8px; - padding: 1.5rem; + padding-left: 1rem; @media (max-width: 768px) { - padding: 0.75rem; - gap: 0.875rem; + padding-left: 0.5rem; } } .setting-item { - display: flex; - flex-direction: column; - gap: 0.5rem; - padding-bottom: 1rem; - border-bottom: 1px solid var(--p-content-border-color); + padding: 0.875rem 1rem; + border-radius: 6px; + border-left: 3px solid var(--primary-color); + background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%); + transition: border-color 0.2s ease, background 0.2s ease; - &:last-child { - border-bottom: none; - padding-bottom: 0; - } - - &.setting-item-indented { - margin-top: 0.5rem; - margin-left: 0; - padding: 0.75rem 0.75rem 0.625rem 0.75rem; - border-left: 3px solid var(--primary-color); - border-bottom: none; - background: var(--p-surface-800); - border-radius: 6px; - position: relative; - - &::before { - display: none; - } + &:hover { + background: color-mix(in srgb, var(--ground-background) 40%, var(--p-surface-800) 60%); } @media (max-width: 768px) { - gap: 0.5rem; - - &.setting-item-indented { - margin-left: 0; - padding: 0.625rem 0.625rem 0.5rem 0.625rem; - } + padding: 0.75rem; } } -.setting-info { - flex: 1; - min-width: 0; +.setting-header-standalone { + margin-bottom: 0.25rem; +} - .setting-label { - display: block; - font-weight: 600; - color: var(--text-color); - font-size: 1rem; - margin-bottom: 0.375rem; - letter-spacing: -0.01em; - } +.setting-label { + font-weight: 500; + color: var(--text-color); + font-size: 0.9375rem; +} - .setting-label-row { - display: flex; - align-items: center; - gap: 0.75rem; - flex-wrap: wrap; +.setting-description { + color: var(--p-text-muted-color); + font-size: 0.8125rem; + line-height: 1.4; + margin: 0; +} - .setting-label { - margin-bottom: 0; - flex-shrink: 0; - font-size: 0.9375rem; - color: var(--text-color-secondary); - } +.setting-options { + margin-top: 0.75rem; + padding-top: 0.75rem; + border-top: 1px dashed var(--p-content-border-color); - p-select { - min-width: 200px; + p-select { + min-width: 200px; - @media (max-width: 768px) { - min-width: 100%; - } - } - } - - .setting-description { - display: flex; - align-items: flex-start; - gap: 0.375rem; - color: var(--p-text-muted-color); - font-size: 0.875rem; - line-height: 1.5; - margin: 0; - - .pi { - margin-top: 0.125rem; - flex-shrink: 0; - font-size: 0.875rem; - } - - .pi-info-circle { - color: var(--primary-color); + @media (max-width: 768px) { + min-width: 100%; + width: 100%; } } } diff --git a/booklore-ui/src/app/features/settings/view-preferences-parent/meta-center-view-mode/meta-center-view-mode-component.html b/booklore-ui/src/app/features/settings/view-preferences-parent/meta-center-view-mode/meta-center-view-mode-component.html index 1396ef58b..a78d9e6c4 100644 --- a/booklore-ui/src/app/features/settings/view-preferences-parent/meta-center-view-mode/meta-center-view-mode-component.html +++ b/booklore-ui/src/app/features/settings/view-preferences-parent/meta-center-view-mode/meta-center-view-mode-component.html @@ -11,69 +11,55 @@
-
+
-

- - Choose whether to open the Metadata Center in the current page or as a popup dialog window. -

-
-
-
-
- - -
-
+

Choose whether to open the Metadata Center in the current page or as a popup dialog window.

+
+
+ +
-
+
-

- - Enable or disable the series view mode for displaying series information. -

-
-
-
-
- - -
-
+

Enable or disable the series view mode for displaying series information.

+
+
+ +
diff --git a/booklore-ui/src/app/features/settings/view-preferences-parent/meta-center-view-mode/meta-center-view-mode-component.scss b/booklore-ui/src/app/features/settings/view-preferences-parent/meta-center-view-mode/meta-center-view-mode-component.scss index 467e1fd3d..2306433a6 100644 --- a/booklore-ui/src/app/features/settings/view-preferences-parent/meta-center-view-mode/meta-center-view-mode-component.scss +++ b/booklore-ui/src/app/features/settings/view-preferences-parent/meta-center-view-mode/meta-center-view-mode-component.scss @@ -1,54 +1,20 @@ -.main-container { - width: 100%; - overflow-y: auto; -} - -.settings-header { - margin-top: 1.25rem; - margin-bottom: 1rem; -} - -.settings-title { - display: flex; - align-items: center; - gap: 0.75rem; - font-size: 1.25rem; - font-weight: 700; - color: var(--p-text-color); - margin: 0 0 0.75rem 0; - - .pi { - color: var(--p-primary-color); - font-size: 1.25rem; - } -} - -.settings-description { - color: var(--p-text-muted-color); - font-size: 0.875rem; - line-height: 1.5; - margin-bottom: 1rem; -} - -.section-body { - padding-left: 1rem; - - > .setting-item { - margin-bottom: 0.75rem; - } -} - -.settings-content { +.settings-card { display: flex; flex-direction: column; - gap: 2rem; + gap: 1.25rem; + background: var(--card-background); + border: 1px solid var(--p-content-border-color); + border-radius: 8px; + padding: 1.5rem; + + @media (max-width: 768px) { + padding: 1rem; + gap: 1rem; + } } .section-header { - margin-bottom: 1rem; - padding-bottom: 0.5rem; - border-bottom: var(--card-border); - border-bottom-color: var(--p-content-border-color); + margin-bottom: 0.25rem; } .section-title { @@ -73,104 +39,54 @@ margin: 0; } -.settings-card { +.section-body { display: flex; flex-direction: column; gap: 1rem; - background: var(--card-background); - border: 1px solid var(--p-content-border-color); - border-radius: 8px; - padding: 1.5rem; + padding-left: 1rem; @media (max-width: 768px) { - padding: 0.75rem; - gap: 0.875rem; + padding-left: 0.5rem; } } .setting-item { - display: flex; - flex-direction: column; - gap: 0.5rem; - padding-bottom: 1rem; - border-bottom: 1px solid var(--p-content-border-color); + padding: 0.875rem 1rem; + border-radius: 6px; + border-left: 3px solid var(--primary-color); + background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%); + transition: border-color 0.2s ease, background 0.2s ease; - &:last-child { - border-bottom: none; - padding-bottom: 0; - } - - &.setting-item-indented { - margin-top: 0.5rem; - margin-left: 0; - padding: 0.75rem 0.75rem 0.625rem 0.75rem; - border-left: 3px solid var(--primary-color); - border-bottom: none; - background: var(--p-surface-800); - border-radius: 6px; - position: relative; - - &::before { - display: none; - } + &:hover { + background: color-mix(in srgb, var(--ground-background) 40%, var(--p-surface-800) 60%); } @media (max-width: 768px) { - gap: 0.5rem; - - &.setting-item-indented { - margin-left: 0; - padding: 0.625rem 0.625rem 0.5rem 0.625rem; - } + padding: 0.75rem; } } -.setting-info { - flex: 1; - min-width: 0; +.setting-header-standalone { + margin-bottom: 0.25rem; +} - .setting-label { - display: block; - font-weight: 600; - color: var(--text-color); - font-size: 1rem; - margin-bottom: 0.375rem; - letter-spacing: -0.01em; - } +.setting-label { + font-weight: 500; + color: var(--text-color); + font-size: 0.9375rem; +} - .setting-label-row { - display: flex; - align-items: center; - gap: 0.75rem; - flex-wrap: wrap; +.setting-description { + color: var(--p-text-muted-color); + font-size: 0.8125rem; + line-height: 1.4; + margin: 0; +} - .setting-label { - margin-bottom: 0; - flex-shrink: 0; - font-size: 0.9375rem; - color: var(--text-color-secondary); - } - } - - .setting-description { - display: flex; - align-items: flex-start; - gap: 0.375rem; - color: var(--p-text-muted-color); - font-size: 0.875rem; - line-height: 1.5; - margin: 0; - - .pi { - margin-top: 0.125rem; - flex-shrink: 0; - font-size: 0.875rem; - } - - .pi-info-circle { - color: var(--primary-color); - } - } +.setting-options { + margin-top: 0.75rem; + padding-top: 0.75rem; + border-top: 1px dashed var(--p-content-border-color); } .button-group { diff --git a/booklore-ui/src/app/features/settings/view-preferences-parent/sidebar-sorting-preferences/sidebar-sorting-preferences.component.html b/booklore-ui/src/app/features/settings/view-preferences-parent/sidebar-sorting-preferences/sidebar-sorting-preferences.component.html index 88e2a9a3a..5665c2cd0 100644 --- a/booklore-ui/src/app/features/settings/view-preferences-parent/sidebar-sorting-preferences/sidebar-sorting-preferences.component.html +++ b/booklore-ui/src/app/features/settings/view-preferences-parent/sidebar-sorting-preferences/sidebar-sorting-preferences.component.html @@ -11,74 +11,53 @@
-
+
-

- - Choose how library names are sorted and displayed in the sidebar. -

-
-
-
- - -
-
+

Choose how library names are sorted and displayed in the sidebar.

+
+ +
-
+
-

- - Choose how shelf names are sorted and displayed in the sidebar. -

-
-
-
- - -
-
+

Choose how shelf names are sorted and displayed in the sidebar.

+
+ +
-
+
-

- - Choose how magic shelf names are sorted and displayed in the sidebar. -

-
-
-
- - -
-
+

Choose how magic shelf names are sorted and displayed in the sidebar.

+
+ +
diff --git a/booklore-ui/src/app/features/settings/view-preferences-parent/sidebar-sorting-preferences/sidebar-sorting-preferences.component.scss b/booklore-ui/src/app/features/settings/view-preferences-parent/sidebar-sorting-preferences/sidebar-sorting-preferences.component.scss index 7bd8324b3..e202c21a6 100644 --- a/booklore-ui/src/app/features/settings/view-preferences-parent/sidebar-sorting-preferences/sidebar-sorting-preferences.component.scss +++ b/booklore-ui/src/app/features/settings/view-preferences-parent/sidebar-sorting-preferences/sidebar-sorting-preferences.component.scss @@ -1,57 +1,22 @@ -.main-container { - width: 100%; - overflow-y: auto; -} - -.settings-header { - margin-top: 1.25rem; - margin-bottom: 1rem; -} - -.settings-title { - display: flex; - align-items: center; - gap: 0.75rem; - font-size: 1.25rem; - font-weight: 700; - color: var(--p-text-color); - margin: 0 0 0.75rem 0; - - .pi { - color: var(--p-primary-color); - font-size: 1.25rem; - } -} - -.settings-description { - color: var(--p-text-muted-color); - font-size: 0.875rem; - line-height: 1.5; - margin-bottom: 1rem; -} - -.settings-content { +.settings-card { display: flex; flex-direction: column; - gap: 2rem; + gap: 1.25rem; + background: var(--card-background); + border: 1px solid var(--p-content-border-color); + border-radius: 8px; + padding: 1.5rem; + + @media (max-width: 768px) { + padding: 1rem; + gap: 1rem; + } } .section-header { - margin-bottom: 1rem; - padding-bottom: 0.5rem; - border-bottom: var(--card-border); - border-bottom-color: var(--p-content-border-color); + margin-bottom: 0.25rem; } -.section-body { - padding-left: 1rem; - - > .setting-item { - margin-bottom: 0.75rem; - } -} - - .section-title { display: flex; align-items: center; @@ -74,110 +39,61 @@ margin: 0; } -.settings-card { +.section-body { display: flex; flex-direction: column; gap: 1rem; - background: var(--card-background); - border: 1px solid var(--p-content-border-color); - border-radius: 8px; - padding: 1.5rem; + padding-left: 1rem; @media (max-width: 768px) { - padding: 0.75rem; - gap: 0.875rem; + padding-left: 0.5rem; } } .setting-item { - display: flex; - flex-direction: column; - gap: 0.5rem; - padding-bottom: 1rem; - border-bottom: 1px solid var(--p-content-border-color); + padding: 0.875rem 1rem; + border-radius: 6px; + border-left: 3px solid var(--primary-color); + background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%); + transition: border-color 0.2s ease, background 0.2s ease; - &:last-child { - border-bottom: none; - padding-bottom: 0; - } - - &.setting-item-indented { - margin-top: 0.5rem; - margin-left: 0; - padding: 0.75rem 0.75rem 0.625rem 0.75rem; - border-left: 3px solid var(--primary-color); - border-bottom: none; - background: var(--p-surface-800); - border-radius: 6px; - position: relative; - - &::before { - display: none; - } + &:hover { + background: color-mix(in srgb, var(--ground-background) 40%, var(--p-surface-800) 60%); } @media (max-width: 768px) { - gap: 0.5rem; - - &.setting-item-indented { - margin-left: 0; - padding: 0.625rem 0.625rem 0.5rem 0.625rem; - } + padding: 0.75rem; } } -.setting-info { - flex: 1; - min-width: 0; +.setting-header-standalone { + margin-bottom: 0.25rem; +} - .setting-label { - display: block; - font-weight: 600; - color: var(--text-color); - font-size: 1rem; - margin-bottom: 0.375rem; - letter-spacing: -0.01em; - } +.setting-label { + font-weight: 500; + color: var(--text-color); + font-size: 0.9375rem; +} - .setting-label-row { - display: flex; - align-items: center; - gap: 0.75rem; - flex-wrap: wrap; +.setting-description { + color: var(--p-text-muted-color); + font-size: 0.8125rem; + line-height: 1.4; + margin: 0; +} - .setting-label { - margin-bottom: 0; - flex-shrink: 0; - font-size: 0.9375rem; - color: var(--text-color-secondary); - } +.setting-options { + margin-top: 0.75rem; + padding-top: 0.75rem; + border-top: 1px dashed var(--p-content-border-color); - p-select { - min-width: 200px; + p-select { + min-width: 200px; - @media (max-width: 768px) { - min-width: 100%; - } - } - } - - .setting-description { - display: flex; - align-items: flex-start; - gap: 0.375rem; - color: var(--p-text-muted-color); - font-size: 0.875rem; - line-height: 1.5; - margin: 0; - - .pi { - margin-top: 0.125rem; - flex-shrink: 0; - font-size: 0.875rem; - } - - .pi-info-circle { - color: var(--primary-color); + @media (max-width: 768px) { + min-width: 100%; + width: 100%; } } } diff --git a/booklore-ui/src/app/features/settings/view-preferences-parent/view-preferences/view-preferences.component.html b/booklore-ui/src/app/features/settings/view-preferences-parent/view-preferences/view-preferences.component.html index bfff4fdb1..18b0c7827 100644 --- a/booklore-ui/src/app/features/settings/view-preferences-parent/view-preferences/view-preferences.component.html +++ b/booklore-ui/src/app/features/settings/view-preferences-parent/view-preferences/view-preferences.component.html @@ -11,40 +11,36 @@
- -

- - Configure the default sorting field, direction, and view mode for all libraries and shelves. -

-
- - - +
+ +
+

Configure the default sorting field, direction, and view mode for all libraries and shelves.

+
+
+ + + +
- -

- - Automatically save changes when navigating to the next or previous book in the metadata editor. -

-
- +
+
+

Automatically save changes when navigating to the next or previous book in the metadata editor.

- -

- - Add custom preferences for specific libraries or shelves. These will override your default settings. -

-
+
+ +
+

Add custom preferences for specific libraries or shelves. These will override your default settings.

+
@@ -99,7 +95,7 @@
} -
+
diff --git a/booklore-ui/src/app/features/settings/view-preferences-parent/view-preferences/view-preferences.component.scss b/booklore-ui/src/app/features/settings/view-preferences-parent/view-preferences/view-preferences.component.scss index 0de7efada..3dc75cb68 100644 --- a/booklore-ui/src/app/features/settings/view-preferences-parent/view-preferences/view-preferences.component.scss +++ b/booklore-ui/src/app/features/settings/view-preferences-parent/view-preferences/view-preferences.component.scss @@ -1,8 +1,20 @@ +.settings-card { + display: flex; + flex-direction: column; + gap: 1.25rem; + background: var(--card-background); + border: 1px solid var(--p-content-border-color); + border-radius: 8px; + padding: 1.5rem; + + @media (max-width: 768px) { + padding: 1rem; + gap: 1rem; + } +} + .section-header { - margin-bottom: 1rem; - padding-bottom: 0.5rem; - border-bottom: var(--card-border); - border-bottom-color: var(--p-content-border-color); + margin-bottom: 0.25rem; } .section-title { @@ -27,125 +39,87 @@ margin: 0; } -.settings-card { +.section-body { display: flex; flex-direction: column; gap: 1rem; - background: var(--card-background); - border: 1px solid var(--p-content-border-color); - border-radius: 8px; - padding: 1.5rem; - - @media (max-width: 768px) { - padding: 0.75rem; - gap: 0.875rem; - } -} - -.section-body { padding-left: 1rem; - > .setting-item { - margin-bottom: 0.75rem; + @media (max-width: 768px) { + padding-left: 0.5rem; } } .setting-item { - padding-bottom: 1rem; - border-bottom: 1px solid var(--p-content-border-color); + padding: 0.875rem 1rem; + border-radius: 6px; + border-left: 3px solid var(--primary-color); + background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%); + transition: border-color 0.2s ease, background 0.2s ease; - &:last-child { - border-bottom: none; - padding-bottom: 0; - } - - &.setting-item-indented { - margin-top: 0.5rem; - margin-left: 0; - padding: 0.75rem 0.75rem 0.625rem 0.75rem; - border-left: 3px solid var(--primary-color); - border-bottom: none; - background: var(--p-surface-800); - border-radius: 6px; - position: relative; - - &::before { - display: none; - } + &:hover { + background: color-mix(in srgb, var(--ground-background) 40%, var(--p-surface-800) 60%); } @media (max-width: 768px) { - gap: 0.5rem; - - &.setting-item-indented { - margin-left: 0; - padding: 0.625rem 0.625rem 0.5rem 0.625rem; - } - } - - .setting-label { - display: block; - font-weight: 600; - color: var(--text-color); - font-size: 1rem; - margin-bottom: 0.375rem; - letter-spacing: -0.01em; - } - - .setting-description { - display: flex; - align-items: flex-start; - gap: 0.375rem; - color: var(--p-text-muted-color); - font-size: 0.875rem; - line-height: 1.5; - margin: 0 0 0.5rem 0; - - .pi { - margin-top: 0.125rem; - flex-shrink: 0; - font-size: 0.875rem; - color: var(--primary-color); - } - } - - .setting-controls { - display: flex; - align-items: center; - gap: 0.5rem; - flex-wrap: wrap; - margin-top: 0.5rem; - margin-left: 0; padding: 0.75rem; - border-left: 3px solid var(--primary-color); - background: var(--p-surface-800); - border-radius: 6px; + } +} - @media (max-width: 768px) { - padding: 0.625rem; - flex-direction: column; - align-items: stretch; - } +.setting-header { + display: flex; + align-items: center; + gap: 0.75rem; + margin-bottom: 0.25rem; +} - .control-label { - font-size: 0.9375rem; - color: var(--text-color-secondary); - font-weight: 600; - } +.setting-header-standalone { + margin-bottom: 0.25rem; +} + +.setting-label { + font-weight: 500; + color: var(--text-color); + font-size: 0.9375rem; +} + +.setting-description { + color: var(--p-text-muted-color); + font-size: 0.8125rem; + line-height: 1.4; + margin: 0; +} + +.setting-options { + margin-top: 0.75rem; + padding-top: 0.75rem; + border-top: 1px dashed var(--p-content-border-color); +} + +.select-group { + display: flex; + align-items: center; + gap: 0.5rem; + flex-wrap: wrap; + + p-select { + min-width: 140px; + } + + @media (max-width: 768px) { + flex-direction: column; + align-items: stretch; p-select { - min-width: 140px; - - @media (max-width: 768px) { - min-width: 100%; - } + min-width: 100%; } } } .overrides-table { width: 100%; - margin-top: 1rem; + border-radius: 6px; + overflow: hidden; ::ng-deep { .p-datatable { @@ -158,7 +132,7 @@ padding: 0.75rem; background: color-mix(in srgb, var(--text-color) 3%, transparent); border-bottom: 1px solid var(--p-content-border-color); - font-size: 0.875rem; + font-size: 0.8125rem; } .p-datatable-tbody > tr { @@ -167,7 +141,7 @@ } > td { - padding: 0.75rem; + padding: 0.625rem; border-bottom: 1px solid color-mix(in srgb, var(--p-content-border-color) 50%, transparent); } @@ -179,8 +153,9 @@ } } -.save-section { +.setting-actions { display: flex; - justify-content: flex-start; + justify-content: flex-end; padding-top: 0.5rem; + border-top: 1px solid var(--p-content-border-color); } diff --git a/booklore-ui/src/main.ts b/booklore-ui/src/main.ts index e8e4ee182..9b1be1caa 100644 --- a/booklore-ui/src/main.ts +++ b/booklore-ui/src/main.ts @@ -14,12 +14,12 @@ import {routes} from './app/app.routes'; import {AuthInterceptorService} from './app/core/security/auth-interceptor.service'; import {AuthService, websocketInitializer} from './app/shared/service/auth.service'; import {OAuthStorage, provideOAuthClient} from 'angular-oauth2-oidc'; -import {inject, provideAppInitializer, provideZoneChangeDetection, isDevMode} from '@angular/core'; +import {inject, isDevMode, provideAppInitializer, provideZoneChangeDetection} from '@angular/core'; import {initializeAuthFactory} from './app/core/security/auth-initializer'; import {StartupService} from './app/shared/service/startup.service'; import {provideCharts, withDefaultRegisterables} from 'ng2-charts'; import ChartDataLabels from 'chartjs-plugin-datalabels'; -import { provideServiceWorker } from '@angular/service-worker'; +import {provideServiceWorker} from '@angular/service-worker'; export function storageFactory(): OAuthStorage { return localStorage; @@ -66,8 +66,8 @@ bootstrapApplication(AppComponent, { } } }), provideServiceWorker('ngsw-worker.js', { - enabled: !isDevMode(), - registrationStrategy: 'registerWhenStable:30000' - }) + enabled: !isDevMode(), + registrationStrategy: 'registerWhenStable:30000' + }) ] }).catch(err => console.error(err));