fix(1816): fixed an style issue inconsistency on home page (#1817)

This commit is contained in:
Prince Kumar Sharma
2025-03-11 21:30:06 +05:30
committed by GitHub
parent 064fc0b1c8
commit 34a18e88c7
2 changed files with 12 additions and 2 deletions

View File

@@ -79,6 +79,14 @@ main.home {
margin-top: 150px;
}
.non-en-doc:has(#i18n-notice-box.hidden) #home-content {
margin-top: 150px;
}
.non-en-doc:has(#i18n-notice-box:not(.hidden)) .content {
margin-top: 50px;
}
#homepage-leftpane {
min-width: 500px;
margin-right: 30px;

View File

@@ -79,11 +79,13 @@ $(function(){
// i18n notice
if (readCookie('i18nClose')) {
$('#i18n-notice-box').hide()
$('#i18n-notice-box').hide();
$("#i18n-notice-box").addClass("hidden");
}
else {
$('#close-i18n-notice-box').on('click', function () {
$('#i18n-notice-box').hide()
$('#i18n-notice-box').hide();
$("#i18n-notice-box").addClass("hidden");
createCookie('i18nClose', 1);
})
}