Introduce a new eBook reader with support for EPUB, MOBI, AZW3, and FB2 formats (#2258)
Co-authored-by: acx10 <acx10@users.noreply.github.com>
This commit is contained in:
+7
-3
@@ -15,7 +15,13 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- EPUB Settings -->
|
||||
<div class="info-notice unsupported-formats-note" style="margin-bottom: 1rem;">
|
||||
<i class="pi pi-info-circle"></i>
|
||||
<div>
|
||||
<strong>Note:</strong> Writing metadata is <b>not supported</b> for FB2, AZW3, and MOBI formats.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="setting-item">
|
||||
<div class="setting-info">
|
||||
<label class="setting-label">Write Metadata to EPUB</label>
|
||||
@@ -55,7 +61,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- CBX Settings -->
|
||||
<div class="setting-item">
|
||||
<div class="setting-info">
|
||||
<label class="setting-label">Write Metadata to CBX</label>
|
||||
@@ -95,7 +100,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- PDF Settings -->
|
||||
<div class="setting-item">
|
||||
<div class="setting-info">
|
||||
<label class="setting-label">Write Metadata to PDF</label>
|
||||
|
||||
+26
@@ -213,3 +213,29 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.info-notice.unsupported-formats-note {
|
||||
background: color-mix(
|
||||
in srgb,
|
||||
var(--p-surface-900) 90%,
|
||||
var(--p-blue-600) 10%
|
||||
);
|
||||
border-left: 4px solid var(--p-blue-400);
|
||||
color: var(--p-text-color);
|
||||
padding: 0.75rem 1rem;
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 0.75rem;
|
||||
|
||||
.pi-info-circle {
|
||||
color: var(--p-blue-400);
|
||||
margin-top: 0.15rem;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
strong {
|
||||
color: var(--p-blue-300);
|
||||
font-weight: 700;
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -87,11 +87,11 @@ export class MetadataPersistenceSettingsComponent implements OnInit {
|
||||
saveToOriginalFile: {
|
||||
epub: {
|
||||
enabled: persistenceSettings.saveToOriginalFile?.epub?.enabled ?? false,
|
||||
maxFileSizeInMb: persistenceSettings.saveToOriginalFile?.epub?.maxFileSizeInMb ?? 100
|
||||
maxFileSizeInMb: persistenceSettings.saveToOriginalFile?.epub?.maxFileSizeInMb ?? 250
|
||||
},
|
||||
pdf: {
|
||||
enabled: persistenceSettings.saveToOriginalFile?.pdf?.enabled ?? false,
|
||||
maxFileSizeInMb: persistenceSettings.saveToOriginalFile?.pdf?.maxFileSizeInMb ?? 100
|
||||
maxFileSizeInMb: persistenceSettings.saveToOriginalFile?.pdf?.maxFileSizeInMb ?? 250
|
||||
},
|
||||
cbx: {
|
||||
enabled: persistenceSettings.saveToOriginalFile?.cbx?.enabled ?? false,
|
||||
|
||||
Reference in New Issue
Block a user