mirror of
https://github.com/olehomelchenko/astrolabe-nvc.git
synced 2025-12-21 21:22:23 +00:00
feat: add warning message in help section about local storage data loss
This commit is contained in:
@@ -408,6 +408,12 @@
|
||||
<!-- Storage & Limits -->
|
||||
<section class="help-section">
|
||||
<h3 class="help-heading">Storage & Limits</h3>
|
||||
|
||||
<div class="help-warning">
|
||||
<strong>⚠️ Important:</strong> All data is stored in your browser's local storage. If you clear your browser cache or site data,
|
||||
your snippets and datasets will be permanently deleted. Regular exports are recommended as backups.
|
||||
</div>
|
||||
|
||||
<ul class="help-list">
|
||||
<li><strong>Snippets</strong> — Stored in localStorage with a 5 MB limit (shared across all snippets). The storage monitor shows current usage.</li>
|
||||
<li><strong>Datasets</strong> — Stored in IndexedDB with effectively unlimited space (browser-dependent, typically 50 MB+).</li>
|
||||
|
||||
@@ -306,6 +306,8 @@ body { font-family: var(--font-main); height: 100vh; overflow: hidden; backgroun
|
||||
.help-heading { font-size: 14px; font-weight: bold; margin: 0 0 12px 0; color: var(--win-blue-dark); border-bottom: 1px solid var(--win-gray-dark); padding-bottom: 4px; }
|
||||
.help-text { font-size: 12px; line-height: 1.5; margin: 0 0 8px 0; color: #333; }
|
||||
.help-text:last-child { margin-bottom: 0; }
|
||||
.help-warning { background: #fff3cd; border: 2px solid #ffc107; padding: 12px; margin-bottom: 16px; font-size: 12px; line-height: 1.5; color: #856404; border-radius: 2px; }
|
||||
.help-warning strong { color: #d39e00; }
|
||||
.help-list { margin: 0; padding-left: 20px; font-size: 12px; line-height: 1.6; }
|
||||
.help-list li { margin-bottom: 8px; color: #333; }
|
||||
.help-list li:last-child { margin-bottom: 0; }
|
||||
|
||||
Reference in New Issue
Block a user