From 82fea635831d0f5f953fc5de96b98d1cf691a755 Mon Sep 17 00:00:00 2001 From: eneller Date: Thu, 20 Mar 2025 21:51:14 +0100 Subject: [PATCH] fix: table headers --- src/epub2go_web/static/script.js | 3 ++- src/epub2go_web/static/styles.css | 1 + src/epub2go_web/templates/index.html | 6 +++--- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/epub2go_web/static/script.js b/src/epub2go_web/static/script.js index b8d87f6..a8be8ef 100644 --- a/src/epub2go_web/static/script.js +++ b/src/epub2go_web/static/script.js @@ -2,11 +2,12 @@ const params = new URLSearchParams(window.location.search); const searchInput = document.getElementById('searchInput'); const table = document.getElementById('table'); -const table_r = Array.from(table.getElementsByTagName('tr')); +const table_r = Array.from(table.getElementsByClassName('table-entry')); document.addEventListener('keydown', (event)=>{ if (event.ctrlKey && event.key === 'k'){ event.preventDefault(); + searchInput.focus(); searchInput.select(); } }); diff --git a/src/epub2go_web/static/styles.css b/src/epub2go_web/static/styles.css index 53e07d1..7a6b774 100644 --- a/src/epub2go_web/static/styles.css +++ b/src/epub2go_web/static/styles.css @@ -1,3 +1,4 @@ +/*TODO also style svg icons accordingly */ :root{ --bg:#faf0e673; --bg-acc:#EEEEEE; diff --git a/src/epub2go_web/templates/index.html b/src/epub2go_web/templates/index.html index 0d2a7d7..ccfa484 100644 --- a/src/epub2go_web/templates/index.html +++ b/src/epub2go_web/templates/index.html @@ -32,13 +32,13 @@ - Title - Author + Titel + Autor {% for item in books %} - + Open Link