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 @@ ...@@ -14,8 +14,7 @@
/> />
<div <div
v-if="showMap" :class="['ui tab active map-container', {visible: showMap}]"
class="ui tab active map-container visible"
data-tab="map" data-tab="map"
> >
<div class="hider" /> <div class="hider" />
...@@ -40,7 +39,7 @@ ...@@ -40,7 +39,7 @@
</div> </div>
</div> </div>
<FeatureListTable <FeatureListTable
v-else v-show="!showMap"
:paginated-features="paginatedFeatures" :paginated-features="paginatedFeatures"
:page-numbers="pageNumbers" :page-numbers="pageNumbers"
:checked-features.sync="checkedFeatures" :checked-features.sync="checkedFeatures"
...@@ -513,7 +512,11 @@ export default { ...@@ -513,7 +512,11 @@ export default {
} }
.map-container { .map-container {
width: 80vw;
transform: translateX(-50%);
margin-left: 50%;
visibility: hidden; visibility: hidden;
position: absolute;
} }
.map-container.visible { .map-container.visible {
visibility: visible; visibility: visible;
...@@ -538,8 +541,8 @@ export default { ...@@ -538,8 +541,8 @@ export default {
#map { #map {
width: 100%; width: 100%;
min-height: 300px; min-height: 310px;
height: calc(100vh - 300px); height: calc(100vh - 310px);
border: 1px solid grey; border: 1px solid grey;
/* To not hide the filters */ /* To not hide the filters */
z-index: 1; 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