unterordner scanner

This commit is contained in:
2026-11-12 20:23:53 +01:00
parent 7824ddb6dc
commit 0a38884eac
8 changed files with 390 additions and 32 deletions

View File

@@ -555,6 +555,23 @@
.card-sec h4 .h4r .i, .isec h4 .h4r .i { color: inherit; }
a.jump { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--accent-text); text-decoration: none; }
a.jump:hover { text-decoration: underline; }
/* projects in subfolders (scanner dialog) */
#nestBody { padding: 4px 20px 12px; }
.nestfoot { display: flex; gap: 8px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--border); position: sticky; bottom: 0; background: var(--surface); }
.nestfoot .sp { flex: 1; }
.nroot { margin-top: 14px; }
.nroot > h4 { margin: 0 0 6px; font-size: 13px; display: flex; gap: 7px; align-items: center; }
.nroot > h4 .hint { margin: 0; font-weight: 400; }
.ngroup { border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); margin-top: 8px; overflow: hidden; }
.ngroup .nghead { display: flex; gap: 8px; align-items: center; padding: 8px 12px; font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--border); }
.ngroup .nghead .hint { margin: 0 0 0 auto; font-weight: 400; }
.nitem { display: flex; gap: 10px; align-items: center; padding: 7px 12px; font-size: 13px; border-top: 1px solid var(--border); cursor: pointer; }
.nitem:first-of-type { border-top: 0; }
.nitem input { flex: 0 0 auto; }
.nitem .nrel { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nitem .nrel b { font-weight: 600; }
.nitem .chip { font-size: 10px; }
.card .rootline .rtag + .rtag { margin-left: 4px; }
.pdesc { font-size: 13px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.pdesc.muted { color: var(--muted); font-style: italic; }
.pdesc-edit textarea { width: 100%; min-height: 120px; resize: vertical; font: inherit; font-size: 13px; line-height: 1.5; }
@@ -971,6 +988,7 @@
<div class="rowbtns">
<button class="btn" id="fAddRoot" type="button"><svg class="i"><use href="/icons.svg#plus"/></svg>Ordner hinzufügen</button>
<button class="btn" id="fImportOpen" type="button"><svg class="i"><use href="/icons.svg#folder-plus"/></svg>Mehrere einlesen…</button>
<button class="btn" id="fNestedOpen" type="button" title="Projekte suchen, die eine Ebene tiefer liegen (z. B. in einem Sammelordner)"><svg class="i"><use href="/icons.svg#folder-tree"/></svg>Projekte in Unterordnern…</button>
</div>
<div class="importbox" id="fImport" hidden>
<div class="hint" style="margin:0 0 6px">Übergeordneten Ordner wählen – seine Unterordner werden als Projektordner angeboten.</div>
@@ -1121,6 +1139,21 @@
<div id="itchBody"></div>
</dialog>
<dialog id="nestDlg" class="dlg wide">
<div class="ihead">
<h3><svg class="i lg"><use href="/icons.svg#folder-tree"/></svg>Projekte in Unterordnern</h3>
<span class="sp"></span>
<button class="iconbtn" type="button" id="nestClose" title="Schließen (Esc)"><svg class="i"><use href="/icons.svg#x"/></svg></button>
</div>
<div id="nestBody"></div>
<div class="nestfoot">
<button class="btn" type="button" id="nestDeep" title="Auch in echten Projekten suchen, z. B. PowerBackupPro_CleanTools…"><svg class="i"><use href="/icons.svg#scan-search"/></svg>Auch in Projekten suchen</button>
<span class="sp"></span>
<button class="btn" type="button" id="nestCancel">Abbrechen</button>
<button class="btn primary" type="button" id="nestOk"><svg class="i"><use href="/icons.svg#check"/></svg>Übernehmen</button>
</div>
</dialog>
<div id="toast"></div>
<script src="app.js"></script>
</body>