From 3cdc0368589018feb569560b351f7a16f1d0a139 Mon Sep 17 00:00:00 2001 From: Veloman Yunkan Date: Thu, 5 Sep 2024 13:27:17 +0400 Subject: [PATCH] Updated nojs library page ... to keep it in sync with the JSful library page that has been modified in the previous commit. --- static/skin/index.css | 2 +- static/templates/no_js_library_page.html | 52 +++++----- test/library_server.cpp | 116 +++++++++++++---------- test/server.cpp | 4 +- 4 files changed, 93 insertions(+), 81 deletions(-) diff --git a/static/skin/index.css b/static/skin/index.css index ff90b5711..191a071b2 100644 --- a/static/skin/index.css +++ b/static/skin/index.css @@ -231,6 +231,7 @@ position: relative; width: var(--tile-width); left: calc(0px - var(--tile-border-width)); + text-decoration: none; } .book__download > img { @@ -239,7 +240,6 @@ } .book__download > span { - text-decoration: none; position: relative; font-family: roboto; color: white; diff --git a/static/templates/no_js_library_page.html b/static/templates/no_js_library_page.html index cb7479298..dd34a9b7f 100644 --- a/static/templates/no_js_library_page.html +++ b/static/templates/no_js_library_page.html @@ -50,20 +50,11 @@ pointer-events: none; } - .book__link__wrapper { - grid-column: 1 / 3; - grid-row: 1 / 3; - } - - .book__link { - grid-row: 2 / 3; - } - .kiwixHomeBody__results { flex-basis: 100%; } - #book__title>a, .book__download a { + #book__title>a { text-decoration: none; all: unset; } @@ -117,25 +108,32 @@

{{translations.count-of-matching-books}}

{{#books}}
- diff --git a/test/library_server.cpp b/test/library_server.cpp index 83d138de9..2d52e5c15 100644 --- a/test/library_server.cpp +++ b/test/library_server.cpp @@ -1033,7 +1033,7 @@ TEST_F(LibraryServerTest, no_name_mapper_catalog_v2_individual_entry_access) " />\n" \ " \n" \ " \n" \ @@ -1066,17 +1066,10 @@ TEST_F(LibraryServerTest, no_name_mapper_catalog_v2_individual_entry_access) " .tag__link {\n" \ " pointer-events: none;\n" \ " }\n\n" \ - " .book__link__wrapper {\n" \ - " grid-column: 1 / 3;\n" \ - " grid-row: 1 / 3;\n" \ - " }\n\n" \ - " .book__link {\n" \ - " grid-row: 2 / 3;\n" \ - " }\n\n" \ " .kiwixHomeBody__results {\n" \ " flex-basis: 100%;\n" \ " }\n\n" \ - " #book__title>a, .book__download a {\n" \ + " #book__title>a {\n" \ " text-decoration: none;\n" \ " all: unset;\n" \ " }\n" \ @@ -1087,62 +1080,83 @@ TEST_F(LibraryServerTest, no_name_mapper_catalog_v2_individual_entry_access) #define CHARLES_RAY_BOOK_HTML \ "
\n" \ - "