diff --git a/static/css/mobile_styles.css b/static/css/mobile_styles.css index 0bdfd25..b1875b8 100644 --- a/static/css/mobile_styles.css +++ b/static/css/mobile_styles.css @@ -432,6 +432,11 @@ } + .cut_width_f_curtain{ + position: sticky; + top: 61px; + } + .menu_buttons.right.close{ right: -320px; transition: 200ms; diff --git a/static/css/styles(boris).css b/static/css/styles(boris).css index 0a4b0fa..12a316f 100644 --- a/static/css/styles(boris).css +++ b/static/css/styles(boris).css @@ -2214,10 +2214,10 @@ .cut_width_f_curtain{ max-width: 1280px; text-align: -webkit-right; - position: sticky; + position: relative; margin: auto; z-index: 10002; - top: 61px; + top: 0; } .menu_buttons{ @@ -2231,6 +2231,8 @@ } + + .menu_buttons.right.close{ right: 0; transition: 200ms; diff --git a/static/css/styles.css b/static/css/styles.css index 4c0a9b5..232f284 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -143,6 +143,7 @@ html, body{ margin: 0 auto; max-width: 1280px; position: relative; + min-height: 695px; } /*.wrapper_main{*/ diff --git a/static/js/user_profile_2.js b/static/js/user_profile_2.js index 836355c..24c43b3 100644 --- a/static/js/user_profile_2.js +++ b/static/js/user_profile_2.js @@ -787,7 +787,12 @@ function getOpenCurtain () { curtains.forEach(function (){ let el = curtains[i] if (el.classList.contains('open')){ - curtain.push(el) + let type_data = getTypeOfData(curtain) + if (type_data === 'object'){ + curtain.push(el) + } else { + curtain = el + } } i++ })