add folder structure docs hint to library creator dialog (#3123)
This commit is contained in:
@@ -82,6 +82,11 @@
|
||||
</div>
|
||||
|
||||
<div class="folders-zone">
|
||||
<div class="folder-structure-hint">
|
||||
<i class="pi pi-exclamation-triangle"></i>
|
||||
<span [innerHTML]="t('folderStructureHint')"></span>
|
||||
</div>
|
||||
|
||||
<button class="add-folder-trigger" (click)="openDirectoryPicker()" type="button">
|
||||
<i class="pi pi-plus-circle"></i>
|
||||
<span>{{ t('addFolder') }}</span>
|
||||
@@ -103,11 +108,6 @@
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
} @else {
|
||||
<div class="empty-hint">
|
||||
<i class="pi pi-info-circle"></i>
|
||||
<span>{{ t('emptyFoldersHint') }}</span>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@@ -251,6 +251,35 @@
|
||||
}
|
||||
}
|
||||
|
||||
.folder-structure-hint {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.625rem;
|
||||
padding: 0.625rem 0.75rem;
|
||||
background: rgba(234, 179, 8, 0.08);
|
||||
border: 1px solid rgba(234, 179, 8, 0.25);
|
||||
border-radius: 6px;
|
||||
font-size: 0.8125rem;
|
||||
color: var(--text-secondary-color);
|
||||
line-height: 1.5;
|
||||
|
||||
i {
|
||||
font-size: 0.9rem;
|
||||
color: rgb(234, 179, 8);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--p-primary-color);
|
||||
text-decoration: none;
|
||||
font-weight: 500;
|
||||
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Folders zone
|
||||
.folders-zone {
|
||||
display: flex;
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
"bookFolders": "Book Folders",
|
||||
"addFolder": "Add folder",
|
||||
"emptyFoldersHint": "Add folders containing your book files",
|
||||
"folderStructureHint": "Make sure your folders follow the expected <a href='https://booklore.org/docs/library/folder-structure#-recommended-structures' target='_blank' rel='noopener'>directory structure</a> for books and audiobooks.",
|
||||
"options": "Options",
|
||||
"watchFolders": "Watch folders",
|
||||
"watchFoldersTooltip": "Automatically detect new books added to folders",
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
"bookFolders": "Carpetas de Libros",
|
||||
"addFolder": "Agregar carpeta",
|
||||
"emptyFoldersHint": "Agrega carpetas que contengan tus archivos de libros",
|
||||
"folderStructureHint": "Asegurate de que tus carpetas sigan la <a href='https://booklore.org/docs/library/folder-structure#-recommended-structures' target='_blank' rel='noopener'>estructura de directorios</a> esperada para libros y audiolibros.",
|
||||
"options": "Opciones",
|
||||
"watchFolders": "Vigilar carpetas",
|
||||
"watchFoldersTooltip": "Detectar automaticamente nuevos libros agregados a las carpetas",
|
||||
|
||||
Reference in New Issue
Block a user