diff --git a/static/css/styles(boris).css b/static/css/styles(boris).css index 1062214..4cfb519 100644 --- a/static/css/styles(boris).css +++ b/static/css/styles(boris).css @@ -6,6 +6,7 @@ width: 100% !important; } + .disp-none{ display: none !important; } @@ -968,6 +969,26 @@ width: calc(100% - 95px); } +.from_address_point_txt.find_route.w_100{ + border: 1px solid #E6E6E6; + width: calc(100% - 35px); +} + +.from_address_point_txt.find_route.first.w_100{ + width: calc(100% - 35px); + border-right: 1px solid #E6E6E6; +} + +.to_address_point_txt.find_route.w_100{ + border: 1px solid #E6E6E6; + width: calc(100% - 35px); +} + +.to_address_point_txt.find_route.first.w_100{ + width: calc(100% - 35px); + border-right: 1px solid #E6E6E6; +} + .to_address_point_txt.find_route{ border-top: 1px solid #E6E6E6; border-right: 0; diff --git a/static/js/find_route.js b/static/js/find_route.js index aa38874..758076a 100644 --- a/static/js/find_route.js +++ b/static/js/find_route.js @@ -56,6 +56,12 @@ function open_chat (user_id){ function changeWidthEL (el){ let parent = el.offsetParent let loader_place = parent.querySelector('.abbreviation_airport_in_search') - loader_place.classList.toggle('hide') - el.classList.toggle('width-100') + if (loader_place.innerHTML){ + loader_place.classList.remove('hide') + el.classList.remove('w_100') + } else { + loader_place.classList.add('hide') + el.classList.add('w_100') + } + } \ No newline at end of file