Skip to content
Snippets Groups Projects
Commit 99a707d3 authored by Timothee P's avatar Timothee P :sunflower:
Browse files

rehabilitate previous code to toggle map & adjust map height to fit page

parent 15ecd35a
No related branches found
No related tags found
2 merge requests!424version 3.1.0,!411REDMINE_ISSUE-13974|La carte disparait lorsqu'on passe sur la liste ou que l'on change l'ordre des couches
......@@ -14,8 +14,7 @@
/>
<div
v-if="showMap"
class="ui tab active map-container visible"
:class="['ui tab active map-container', {visible: showMap}]"
data-tab="map"
>
<div class="hider" />
......@@ -40,7 +39,7 @@
</div>
</div>
<FeatureListTable
v-else
v-show="!showMap"
:paginated-features="paginatedFeatures"
:page-numbers="pageNumbers"
:checked-features.sync="checkedFeatures"
......@@ -513,7 +512,11 @@ export default {
}
.map-container {
width: 80vw;
transform: translateX(-50%);
margin-left: 50%;
visibility: hidden;
position: absolute;
}
.map-container.visible {
visibility: visible;
......@@ -538,8 +541,8 @@ export default {
#map {
width: 100%;
min-height: 300px;
height: calc(100vh - 300px);
min-height: 310px;
height: calc(100vh - 310px);
border: 1px solid grey;
/* To not hide the filters */
z-index: 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment