From 9662566bdbeea2710caa51c706a6581a54a09850 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Fri, 13 Apr 2018 10:27:25 +0200 Subject: [PATCH] Fix search window in mobile mode --- contribs/gmf/less/displayquerywindow.less | 27 +++++++++++------------ 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/contribs/gmf/less/displayquerywindow.less b/contribs/gmf/less/displayquerywindow.less index 37c3898a5fee..09b352805a42 100644 --- a/contribs/gmf/less/displayquerywindow.less +++ b/contribs/gmf/less/displayquerywindow.less @@ -62,7 +62,6 @@ .slide-animation { display: flex; flex-direction: column; - height: 100%; width: 100%; padding: @app-margin; text-align: left; @@ -196,13 +195,22 @@ &.desktop { .windowcontainer { height: 24rem; + .slide-animation { + height: 100%; + } } } -} + &.mobile { + button.close { + font-size: 21px; + } + .slide-animation { + height: calc(~"100% -" @map-tools-size + @app-margin); + } -.gmf-displayquerywindow.mobile { - button.close { - font-size: 21px; + .animation-container-detailed { + height: (@displayquerywindow-detailed-header-height + @displayquerywindow-detailed-details-height / 2 + @app-margin * 3) + @map-tools-size; + } } } @@ -227,12 +235,3 @@ } } } - -@media (orientation:landscape) { - /* mobile landscape orientation */ - .gmf-displayquerywindow.mobile { - .animation-container-detailed { - height: (@displayquerywindow-detailed-header-height + @displayquerywindow-detailed-details-height / 2 + @app-margin * 3) + @map-tools-size; - } - } -}