diff --git a/android/dashboard/public/css/dashboard.css b/android/dashboard/public/css/dashboard.css index a1b4c19..8fb1a77 100644 --- a/android/dashboard/public/css/dashboard.css +++ b/android/dashboard/public/css/dashboard.css @@ -77,7 +77,7 @@ body { APP: KIWIX ========================================= */ .collapse-btn-container { opacity: 0; transition: opacity 0.3s ease-in-out; text-align: center; margin-top: -10px; margin-bottom: 20px;} -#terminal-container:hover .collapse-btn-container { opacity: 1; } +#terminal-container:hover .collapse-btn-container, #maps-terminal-container:hover .collapse-btn-container { opacity: 1; } .filter-active { background-color: #198754 !important; color: white !important; border-color: #198754 !important;} .filter-inactive { background-color: transparent !important; color: #198754 !important; border-color: #198754 !important;} @@ -96,7 +96,7 @@ body { } /* ========================================= - NEW: MOBILE SPACING (CARD EXPERIENCE) + MOBILE SPACING (CARD EXPERIENCE) ========================================= */ /* 1. Add margins to the main container to separate it from the phone edges */ .app-panel { diff --git a/android/dashboard/sockets/kiwix.socket.ts b/android/dashboard/sockets/kiwix.socket.ts index 82fc7ec..f60d810 100644 --- a/android/dashboard/sockets/kiwix.socket.ts +++ b/android/dashboard/sockets/kiwix.socket.ts @@ -46,7 +46,7 @@ async function getKiwixCatalog() { export const handleKiwixEvents = (socket: Socket) => { let downloadProcess: ChildProcess | null = null; let indexProcess: ChildProcess | null = null; - let currentDownloads: string[] = []; // <-- NEW: Memory of what we are currently downloading + let currentDownloads: string[] = []; socket.on('request_kiwix_catalog', async () => { socket.emit('kiwix_status', { message: 'Synchronizing catalog with local disk...' }); @@ -125,7 +125,7 @@ export const handleKiwixEvents = (socket: Socket) => { }); }); - // NEW: PANIC BUTTON (Cancel Download) + // CANCEL DOWNLOAD BUTTON socket.on('cancel_kiwix_download', () => { if (downloadProcess) { socket.emit('kiwix_terminal_output', '\n[System] 🛑 ABORTING: Killing Aria2c process...\n'); diff --git a/android/dashboard/views/components/app_maps.ejs b/android/dashboard/views/components/app_maps.ejs index 8896366..049633d 100644 --- a/android/dashboard/views/components/app_maps.ejs +++ b/android/dashboard/views/components/app_maps.ejs @@ -96,7 +96,7 @@ document.getElementById('btn-yes').addEventListener('click', () => sendYN('y')); document.getElementById('btn-no').addEventListener('click', () => sendYN('n')); - // B. Card Catalog Logic (New UI) + // B. Card Catalog Logic let mapsInMemory = []; const mapsContainer = document.getElementById('maps-container'); const mapsStatus = document.getElementById('maps-status');