feat(ui): aggiunge anteprima desktop dei file non smistati

This commit is contained in:
2026-03-16 10:11:59 +01:00
parent 164959acaf
commit 3a567c390c
5 changed files with 198 additions and 1 deletions

View File

@@ -161,6 +161,65 @@
color: var(--muted);
}
.preview-overlay {
position: fixed;
inset: 0;
background: rgba(15, 23, 42, 0.55);
display: none;
align-items: center;
justify-content: center;
padding: 16px;
z-index: 20;
}
.preview-overlay.visible {
display: flex;
}
.preview-card {
width: min(900px, 100%);
max-height: 85vh;
background: #ffffff;
border: 1px solid var(--border);
border-radius: 12px;
padding: 14px;
display: flex;
flex-direction: column;
gap: 10px;
}
.preview-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
}
.preview-header h2 {
margin: 0;
font-size: 18px;
}
.preview-meta {
font-size: 12px;
color: var(--muted);
word-break: break-all;
}
.preview-list {
margin: 0;
background: #0f172a;
color: #e2e8f0;
border: 1px solid var(--border);
border-radius: 10px;
padding: 12px;
overflow: auto;
min-height: 220px;
max-height: 58vh;
font-size: 13px;
white-space: pre-wrap;
}
@media (max-width: 760px) {
.rule-row {
grid-template-columns: 1fr;
@@ -200,11 +259,25 @@
<button id="browseDestinationBtn" class="browse">Sfoglia</button>
<button id="saveDestinationBtn">Salva</button>
</div>
<div class="rule-row single-row">
<button id="openUnroutedBtn" class="browse">Anteprima non smistati</button>
</div>
<div class="rule-status" id="destinationStatus"></div>
</section>
<pre id="output">Pronto.</pre>
</main>
<section class="preview-overlay" id="unroutedPreviewOverlay">
<article class="preview-card">
<div class="preview-header">
<h2>Anteprima __NON_SMISTATI</h2>
<button id="closeUnroutedPreviewBtn" class="secondary">Chiudi</button>
</div>
<div class="preview-meta" id="unroutedPreviewMeta"></div>
<pre class="preview-list" id="unroutedPreviewList">Nessun dato.</pre>
</article>
</section>
<script src="./renderer.js"></script>
</body>
</html>