From 422373f00ed3eeb9b88f823ac2fa501373f4d53c Mon Sep 17 00:00:00 2001 From: SBD Date: Wed, 31 Jan 2024 14:46:18 +0300 Subject: [PATCH 1/6] 5 --- static/css/mobile_styles.css | 4 ++-- static/css/styles(boris).css | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/static/css/mobile_styles.css b/static/css/mobile_styles.css index 3a1b179..acfb519 100644 --- a/static/css/mobile_styles.css +++ b/static/css/mobile_styles.css @@ -969,10 +969,10 @@ .left-part-block-enter-message{ - width: 70%; + width: calc(70% - 74px); } .right-part-block-enter-message{ - width: 30%; + width: 74px; } .container-message_support_chat{ width: 70%; diff --git a/static/css/styles(boris).css b/static/css/styles(boris).css index 5eedacc..03a223f 100644 --- a/static/css/styles(boris).css +++ b/static/css/styles(boris).css @@ -575,12 +575,12 @@ } .left-part-block-enter-message{ - width: 80%; + width: calc(80% - 74px); float: left; } .right-part-block-enter-message{ - width: 20%; + width: 74px; float: right; padding-top: 11px; text-align: right; From 9ecf5ce073a5659907ad49c7b5b96a50bc4ece98 Mon Sep 17 00:00:00 2001 From: SBD Date: Wed, 31 Jan 2024 14:55:04 +0300 Subject: [PATCH 2/6] 5 --- templates/tb_base.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/tb_base.html b/templates/tb_base.html index a736a1a..c55556b 100644 --- a/templates/tb_base.html +++ b/templates/tb_base.html @@ -6,7 +6,7 @@ {# #} - + From dd7afc28f706cd2094f2cf117499b0847081a23c Mon Sep 17 00:00:00 2001 From: SBD Date: Wed, 31 Jan 2024 15:00:48 +0300 Subject: [PATCH 3/6] 5 --- static/js/global_js.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/static/js/global_js.js b/static/js/global_js.js index 86159de..029c3ff 100644 --- a/static/js/global_js.js +++ b/static/js/global_js.js @@ -39,6 +39,12 @@ window.onload = function (){ } // +$(window).on('resize',function (){ + let height = window.innerHeight + $('body')[0].style.maxHeight = height + 'px' + $('body')[0].style.height = height + 'px' +}) + function middleWareJS(){ let footer = document.querySelector("footer") let body = document.querySelector("body") From faaea1129af7cf846d092e5a446ce874ac74aa86 Mon Sep 17 00:00:00 2001 From: SBD Date: Wed, 31 Jan 2024 15:11:39 +0300 Subject: [PATCH 4/6] 5 --- static/js/global_js.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/static/js/global_js.js b/static/js/global_js.js index 029c3ff..c7a658f 100644 --- a/static/js/global_js.js +++ b/static/js/global_js.js @@ -11,9 +11,14 @@ window.onload = function (){ middleWareJS() openOrCloseCurtainSupportChat() openOverlayOrClose() - let height = window.innerHeight - document.querySelector('body').style.maxHeight = height + 'px' - document.querySelector('body').style.height = height + 'px' + let body = document.querySelector("body") + const viewPortH = body.getBoundingClientRect().height; + const windowH = window.innerHeight; + const browserUiBarsH = viewPortH - windowH; + body.style.height = `calc(100vh - ${browserUiBarsH}px)`; + // let height = window.innerHeight + // document.querySelector('body').style.maxHeight = height + 'px' + // document.querySelector('body').style.height = height + 'px' if (window.location.href.includes('profile') && !window.location.href.includes('login') && !window.location.href.includes('registration')){ let user_type = getInfoAboutUser() if (user_type === 'mobile') { @@ -39,11 +44,6 @@ window.onload = function (){ } // -$(window).on('resize',function (){ - let height = window.innerHeight - $('body')[0].style.maxHeight = height + 'px' - $('body')[0].style.height = height + 'px' -}) function middleWareJS(){ let footer = document.querySelector("footer") From 618f7751d14005725dfb6198625fc26b69a62d65 Mon Sep 17 00:00:00 2001 From: SBD Date: Wed, 31 Jan 2024 15:20:20 +0300 Subject: [PATCH 5/6] 5 --- static/css/styles.css | 7 ++++++- static/js/global_js.js | 10 +++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/static/css/styles.css b/static/css/styles.css index 7f0275e..ba7dcda 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -136,8 +136,13 @@ legend { } html, body{ - height: 100%; + /*height: 100%;*/ scroll-behavior: smooth; + height: 100vh; + height: -webkit-fill-available; + height: fill-available; + max-height: fill-available; + max-height: -webkit-fill-available; } .wrapper_content { diff --git a/static/js/global_js.js b/static/js/global_js.js index c7a658f..28e5efa 100644 --- a/static/js/global_js.js +++ b/static/js/global_js.js @@ -11,11 +11,11 @@ window.onload = function (){ middleWareJS() openOrCloseCurtainSupportChat() openOverlayOrClose() - let body = document.querySelector("body") - const viewPortH = body.getBoundingClientRect().height; - const windowH = window.innerHeight; - const browserUiBarsH = viewPortH - windowH; - body.style.height = `calc(100vh - ${browserUiBarsH}px)`; + // let body = document.querySelector("body") + // const viewPortH = body.getBoundingClientRect().height; + // const windowH = window.innerHeight; + // const browserUiBarsH = viewPortH - windowH; + // body.style.height = `calc(100vh - ${browserUiBarsH}px)`; // let height = window.innerHeight // document.querySelector('body').style.maxHeight = height + 'px' // document.querySelector('body').style.height = height + 'px' From 584a196784f4ee119e855a00832b72d22d66e031 Mon Sep 17 00:00:00 2001 From: SBD Date: Wed, 31 Jan 2024 15:20:50 +0300 Subject: [PATCH 6/6] 5 --- static/css/styles.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static/css/styles.css b/static/css/styles.css index ba7dcda..2215551 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -138,11 +138,13 @@ legend { html, body{ /*height: 100%;*/ scroll-behavior: smooth; + /*boris changed height*/ height: 100vh; height: -webkit-fill-available; height: fill-available; max-height: fill-available; max-height: -webkit-fill-available; +/* end*/ } .wrapper_content {