From c5ef95d69b7c882ab8df9a36282e82704ef9dfb2 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 | 2 +- src/epub2go_web/static/styles.css | 1 + src/epub2go_web/templates/index.html | 6 +++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/epub2go_web/static/script.js b/src/epub2go_web/static/script.js index b8d87f6..7110853 100644 --- a/src/epub2go_web/static/script.js +++ b/src/epub2go_web/static/script.js @@ -2,7 +2,7 @@ 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'){ 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