fix: made bookmark pdf type safe

This commit is contained in:
alam00000
2026-01-13 16:59:25 +05:30
parent 446b399be2
commit b57c9a8575
4 changed files with 958 additions and 593 deletions

View File

@@ -416,7 +416,7 @@
type="text"
id="search-bookmarks"
placeholder="Search bookmarks..."
class="w-full pl-10 pr-3 py-2 border border-gray-300 rounded-lg text-sm"
class="w-full pl-10 pr-3 py-2 border border-gray-300 rounded-lg text-sm text-gray-700"
/>
</div>
</div>
@@ -426,7 +426,7 @@
type="text"
id="bookmark-title"
placeholder="Bookmark title..."
class="w-full px-3 py-2 border border-gray-300 rounded-lg mb-2 text-sm"
class="w-full px-3 py-2 border border-gray-300 rounded-lg mb-2 text-sm text-gray-700"
/>
<button
id="add-top-level-btn"
@@ -625,6 +625,21 @@
<input type="file" id="csv-import-hidden" accept=".csv" class="hidden" />
<input type="file" id="json-import-hidden" accept=".json" class="hidden" />
<!-- Loader Modal -->
<div
id="loader-modal"
class="hidden fixed inset-0 bg-black bg-opacity-75 flex items-center justify-center z-50"
>
<div
class="bg-gray-800 p-8 rounded-lg flex flex-col items-center gap-4 border border-gray-700 shadow-xl"
>
<div class="solid-spinner"></div>
<p id="loader-text" class="text-white text-lg font-medium">
Loading PDF...
</p>
</div>
</div>
<div id="modal-container"></div>
<!-- How It Works Section -->