From 3cdc6c41c46c74436e9dce7fb4692b4c5d7bce81 Mon Sep 17 00:00:00 2001 From: Nikhil Tanwar <2002nikhiltanwar@gmail.com> Date: Sat, 11 Feb 2023 22:59:13 +0530 Subject: [PATCH] Stick kiwixNav on top The filters menu will always stay on top now. --- static/skin/index.css | 3 +++ test/server.cpp | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/static/skin/index.css b/static/skin/index.css index b9c1cb4bc..5a1822341 100644 --- a/static/skin/index.css +++ b/static/skin/index.css @@ -24,6 +24,9 @@ body { background-color: #f4f6f8; width: 100%; padding: 20px; + position: sticky; + top: 0; + z-index: 3; } .kiwixHomeBody__results { diff --git a/test/server.cpp b/test/server.cpp index 0b3b9e414..485b60c31 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=2cf0f8c5" }, { DYNAMIC_CONTENT, "/ROOT%23%3F/skin/index.css" }, - { STATIC_CONTENT, "/ROOT%23%3F/skin/index.css?cacheid=f0ee124c" }, + { STATIC_CONTENT, "/ROOT%23%3F/skin/index.css?cacheid=260b184e" }, { DYNAMIC_CONTENT, "/ROOT%23%3F/skin/index.js" }, { STATIC_CONTENT, "/ROOT%23%3F/skin/index.js?cacheid=042058df" }, { DYNAMIC_CONTENT, "/ROOT%23%3F/skin/iso6391To3.js" }, @@ -270,7 +270,7 @@ TEST_F(ServerTest, CacheIdsOfStaticResources) const std::vector testData{ { /* url */ "/ROOT%23%3F/", -R"EXPECTEDRESULT( href="/ROOT%23%3F/skin/index.css?cacheid=f0ee124c" +R"EXPECTEDRESULT( href="/ROOT%23%3F/skin/index.css?cacheid=260b184e"