Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change icon for the layer tools in the layer manager panel on the map page #8376

Merged
merged 2 commits into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,38 +29,7 @@

<div class="flex-col flex-grow">
<div class="width-100 flex-grow">
<span class="gn-layer-ordering btn-group btn-group-xs pull-right">
<!-- Layer Up -->
<a
href=""
class="btn btn-default"
ng-disabled="$first"
ng-click="moveLayer(layer, 1)"
title="{{'layerMoveUp'|translate}}"
>
<span class="fa fa-arrow-up"></span>
</a>
<!-- Layer Down -->
<a
href=""
class="btn btn-default"
ng-disabled="$last"
ng-click="moveLayer(layer, -1, $last)"
title="{{'layerMoveDown'|translate}}"
>
<span class="fa fa-arrow-down"></span>
</a>

<!-- Remove Layer -->
<a
href=""
class="btn btn-default"
data-ng-click="removeLayer(layer, map)"
title="{{'layerDelete'|translate}}"
>
<span class="fa fa-times"></span>
</a>
</span>

<label
class="gn-map-layer"
for="layer-{{$index}}"
Expand All @@ -80,11 +49,55 @@
</span>
</span>
</label>

</div>
</div>

<div class="flex-col flex-self-center">
<span class="pull-right fa fa-ellipsis-v text-medium text-muted"></span>
<div class="dropdown dropdown-left">
<button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
<span class="fa fa-fw fa-ellipsis-vertical"></span>
</button>
<ul class="dropdown-menu dropdown-menu-left">
<li>
<span class=" btn-group btn-group-xs">
<!-- Layer Up -->
<a
href=""
class="btn btn-default"
ng-disabled="$first"
ng-click="moveLayer(layer, 1)"
title="{{'layerMoveUp'|translate}}"
>
<span class="fa fa-arrow-up"></span>
</a>

<!-- Layer Down -->
<a
href=""
class="btn btn-default"
ng-disabled="$last"
ng-click="moveLayer(layer, -1, $last)"
title="{{'layerMoveDown'|translate}}"
>
<span class="fa fa-arrow-down"></span>
</a>

<!-- Remove Layer -->
<a
href=""
class="btn btn-default"
data-ng-click="removeLayer(layer, map)"
title="{{'layerDelete'|translate}}"
>
<span class="fa fa-times"></span>
</a>
</span>
</li>

</ul>
</div>

</div>
</div>

Expand Down
80 changes: 47 additions & 33 deletions web-ui/src/main/resources/catalog/style/gn_viewer.less
Original file line number Diff line number Diff line change
Expand Up @@ -265,26 +265,26 @@
}
li[gn-layermanager-item] {
.fa-arrows-alt,
.gn-layer-ordering {
visibility: hidden;
}
input[type="radio"],
input[type="checkbox"] {
margin-top: 6px;
}
label {
padding: 4px 20px 4px 4px;
display: block;
margin-bottom: 0px;
margin-bottom: 0;
}
.gn-layer-radio {
padding-left: 0px;
padding-right: 0px;
padding-left: 0;
padding-right: 0;
}
.tab-content {
background-color: white;
padding: 5px;
margin: 0px;
margin: 0;
}
.text-muted {
color: @btn-default-border;
}
}
.gn-layer-outofrange > label {
Expand All @@ -307,6 +307,44 @@
}
}
}
.dropdown-left {

@toggleWidth: 32px;
@toggleHeight: 32px;

.dropdown-toggle {
width: @toggleWidth;
padding: 5px;
}
.dropdown-menu {
min-width: calc(~"(3 * @{toggleWidth}) + 6px") !important;
width: auto;
padding: 0;
margin: 0;
right: @toggleWidth;
top: 0;
box-shadow: none;
border: 0;
li {
float: left;
.btn {
width: @toggleWidth;
height: @toggleHeight;
padding: 5px;
margin-right: 2px;
border-radius: 3px !important;
&[disabled] {
color: @btn-link-disabled-color;
border-color: @input-bg-disabled;
}
}
}

}


}

.gn-searchlayer-list {
margin: 0;
padding: 0;
Expand Down Expand Up @@ -344,8 +382,7 @@
min-height: 42px;
&:hover,
&:focus {
.fa-arrows-alt,
.gn-layer-ordering {
.fa-arrows-alt {
visibility: visible;
}
}
Expand All @@ -354,8 +391,7 @@
margin-bottom: 0;
}
&:focus-within {
.fa-arrows-alt,
.gn-layer-ordering {
.fa-arrows-alt {
visibility: visible;
}
}
Expand Down Expand Up @@ -436,28 +472,6 @@
background-color: @gray-lighter;
border-color: @list-group-border;
}
.gn-layer-ordering {
margin-right: -10px;
position: absolute;
right: 15px;
.fa {
padding: 0 8px;
}
&.btn-group-xs {
.btn {
white-space: nowrap;
padding: 4px;
opacity: 1;
&[disabled] {
color: @btn-link-disabled-color;
border-color: @input-bg-disabled;
}
.caret {
margin-right: 3px;
}
}
}
}
.dropdown {
.dropdown-menu {
min-width: 16em;
Expand Down
Loading