From 29c33a7ad62b25cc9bc07849bbe3abfd97c72d5a Mon Sep 17 00:00:00 2001 From: Veloman Yunkan Date: Sat, 28 Oct 2023 21:17:08 +0400 Subject: [PATCH] More economic use of vertical space on the library page --- static/skin/index.css | 12 ++++++------ test/library_server.cpp | 2 +- test/server.cpp | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/static/skin/index.css b/static/skin/index.css index 6e6e973b2..bfe6dc1f3 100644 --- a/static/skin/index.css +++ b/static/skin/index.css @@ -1,7 +1,7 @@ .kiwixNav { background-color: #f4f6f8; width: 100%; - padding: 20px; + padding: 10px 20px; position: sticky; top: 0; z-index: 3; @@ -37,10 +37,10 @@ background-image: none; border-radius: 1px; width: 195px; - height: 35px; + height: 30px; flex: 1; color: black; - padding: 7px 10px 10px; + padding: 0px 10px 0px 10px; cursor: pointer; } @@ -52,7 +52,7 @@ position: relative; display: flex; width: 231px; - height: 35px; + height: 30px; line-height: 3; background: #909090; overflow: hidden; @@ -82,7 +82,7 @@ } .kiwixSearch { - height: 35px; + height: 30px; width: 231px; border-radius: 10px; border: solid 1px #b5b2b2; @@ -96,7 +96,7 @@ .kiwixButton { margin: 0 17px; - height: 35px; + height: 30px; width: 100px; border-radius: 10px; color: white; diff --git a/test/library_server.cpp b/test/library_server.cpp index 057e2590c..0a52ef0b1 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" \ diff --git a/test/server.cpp b/test/server.cpp index 703f1d5d0..93d6bf71e 100644 --- a/test/server.cpp +++ b/test/server.cpp @@ -61,7 +61,7 @@ const ResourceCollection resources200Compressible{ { DYNAMIC_CONTENT, "/ROOT%23%3F/skin/i18n.js" }, { STATIC_CONTENT, "/ROOT%23%3F/skin/i18n.js?cacheid=6a8c6fb2" }, { DYNAMIC_CONTENT, "/ROOT%23%3F/skin/index.css" }, - { STATIC_CONTENT, "/ROOT%23%3F/skin/index.css?cacheid=4196ad7d" }, + { STATIC_CONTENT, "/ROOT%23%3F/skin/index.css?cacheid=1e78e7cf" }, { DYNAMIC_CONTENT, "/ROOT%23%3F/skin/index.js" }, { STATIC_CONTENT, "/ROOT%23%3F/skin/index.js?cacheid=ce19da2a" }, { DYNAMIC_CONTENT, "/ROOT%23%3F/skin/iso6391To3.js" }, @@ -277,7 +277,7 @@ TEST_F(ServerTest, CacheIdsOfStaticResources) { /* url */ "/ROOT%23%3F/", R"EXPECTEDRESULT( href="/ROOT%23%3F/skin/kiwix.css?cacheid=9b1b089f" - href="/ROOT%23%3F/skin/index.css?cacheid=4196ad7d" + href="/ROOT%23%3F/skin/index.css?cacheid=1e78e7cf"