Skip to content

Commit

Permalink
Compact layer list again
Browse files Browse the repository at this point in the history
  • Loading branch information
raitisbe committed Sep 30, 2019
1 parent 7a85f67 commit 6af0586
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
26 changes: 16 additions & 10 deletions components/layermanager/partials/layermanager.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
<li class="list-group-item hs-lm-item hs-lm-header clearfix active">
<div class="d-flex ">
<div class="p-0 flex-grow-1 hs-lm-item-title">
Baselayers
<span class="align-middle" style="line-height: 2em;" translate>Baselayers</span>
</div>
<div>
<button type="button" class="btn btn-sm btn-light hs-lm-item-visibility" ng-click="changeBaseLayerVisibility()"><i
<div class="p-0">
<button type="button" class="btn btn-sm btn-light" ng-click="changeBaseLayerVisibility()"><i
class=""
ng-class="data.baselayersVisible ? 'icon-eye-open': 'icon-eye-close'"></i></button>
</div>
Expand All @@ -35,7 +35,7 @@
ng-click="changeBaseLayerVisibility($event, layer)" ng-mouseenter="hovering=true"
ng-mouseleave="hovering=false" ng-class="{'hovering': (hovering && !layer.active)}">
<div class="d-flex ">
<div class="p-0 flex-grow-1 hs-lm-item-title" ng-if="layer.active"
<div class="p-0 flex-grow-1 hs-lm-item-title"
ng-class="{'font-weight-bold': layer.active, 'text-muted': layer.grayed}">
{{layer.title}}
</div>
Expand All @@ -49,28 +49,33 @@
</ul>

<ul class="list-group hs-lm-baselayerlist" ng-show="data.terrainlayers.length>0">
<li class="list-group-item hs-lm-header clearfix active">
<span translate>Terrains</span>
<li class="list-group-item hs-lm-item hs-lm-header clearfix active">
<div class="d-flex">
<div class="p-0 flex-grow-1 hs-lm-item-title">
<span translate class="align-middle" style="line-height: 2em;">Terrains</span>
</div>
</div>
</li>
<li class="list-group-item hs-lm-item" ng-repeat="layer in data.terrainlayers | orderBy:'name'"
ng-click="changeTerrainLayerVisibility($event, layer)" ng-mouseenter="hovering=true"
ng-mouseleave="hovering=false" ng-class="{'hovering': (hovering && !layer.active)}">
<div class="d-flex ">
<div class="p-0 flex-grow-1 hs-lm-item-title" ng-if="layer.active"
<div class="p-0 flex-grow-1 hs-lm-item-title"
ng-class="{'font-weight-bold': layer.active, 'text-muted': layer.grayed}">
{{layer.title}}
</div>
<div class="p-0" ng-show="layer.active || hovering"
ng-style="hovering && !layer.active && {'opacity':'0.5'}">
<button class="btn btn-sm btn-link"><i class="icon-globe"></i></button>
<button class="btn btn-sm btn-link hs-lm-baseitem-visibility"><i
class="icon-globe"></i></button>
</div>
</div>
</li>
</ul>

<ul class="list-group hs-lm-mapcontentlist">
<li class="list-group-item hs-lm-header hs-lm-item active hs-lm-map-content-header">
<span translate>Map Content</span>
<span translate class="align-middle" style="line-height: 2em;">Map Content</span>
</li>
<ul class="list-group hs-lm-layerlist" ng-repeat="value in data.folders.sub_folders | orderBy:'name' ">
<li class="list-group-item active">
Expand All @@ -90,6 +95,7 @@
</label>
</div> -->
</ul>
<hs.layer-editor current-layer="LayMan.currentLayer" ng-show="LayMan.currentLayer!=null" class="layerpanel"></hs.layer-editor>
<hs.layer-editor current-layer="LayMan.currentLayer" ng-show="LayMan.currentLayer!=null" class="layerpanel">
</hs.layer-editor>
</div>
</div>
6 changes: 3 additions & 3 deletions css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ li.hs-lm-item, li.hs-dr-item {
border-left: 0;
border-right: 0;
padding: 0.1em;
padding-top: 0.4em;
padding-top: 0.2em;
padding-left: 0.2em;
/*border-bottom: 0;*/
}
Expand All @@ -190,10 +190,10 @@ li.hs-lm-item, li.hs-dr-item {

div.hs-lm-item-title {
cursor: pointer;

min-height: 1.76em;
}

.hs-lm-item-visibility{
.hs-lm-item-visibility, .hs-lm-baseitem-visibility{
margin-top: -0.42em;
}

Expand Down

0 comments on commit 6af0586

Please sign in to comment.