This commit is contained in:
2023-10-20 21:40:27 +03:00
parent 71c4ce41f0
commit 9c95358305
4 changed files with 12 additions and 5 deletions

View File

@@ -23,6 +23,9 @@
.f-r{
float: right;
}
.f-l{
float: left;
}
.font-base{
font-size: 16px;
@@ -913,6 +916,8 @@
color: #FFFFFF;
background: #FF613A;
height: 60px;
font-size: 18px;
font-weight: 500;
}
.cont-el-form-search-carrier > a{
@@ -1919,6 +1924,7 @@
.subscribe_type_txt{
color: #000;
font-size: 14px;
width: 100%;
}
.header_big_background{

View File

@@ -11,15 +11,15 @@ window.onload = function (){
function middleWareJS(){
let footer = document.querySelector("footer")
let body = document.body.style;
let body = document.querySelector("body")
if (document.querySelector(".block-list-of-users")){
footer.style.display = "none"
body.style.overflow = "hidden"
} else {
footer.style.display = ""
body.style.overflow = ""
}
}

View File

@@ -17,7 +17,8 @@ function writeMessage(el){
let list_div = document.querySelectorAll('.menu_profile div');
list_div.forEach(el=>{ el.classList.remove('selected'); });
el.classList.add('selected')
let body = document.querySelector("body")
body.style.overflow = "hidden"
//updating the url without reloading
window.history.pushState(null, null, '/ru/profile/page/chat/')
middleWareJS()

View File

@@ -58,7 +58,7 @@
</div>
</div>
<div class="menu_profile_btn">
<div class="subscribe_type_txt"><span>Подписка:</span> <span>Стандарт</span></div>
{% if user_subscribe %}<div class="subscribe_type_txt"><span class="f-l">Подписка:</span> <span class="f-r">{{ user_subscribe }}</span></div>{% endif %}
<a class="btn_menu_profile" href="{% url "user_profile" %}" >Перейти в профиль</a>
<a class="btn_menu_profile" href="{% url 'profile_page' 'create_route_for_mover' %}">Перевезти посылку</a>
<a class="btn_menu_profile" href="{% url 'profile_page' 'create_route_for_customer' %}">Отправить посылку</a>