Skip to content

Commit

Permalink
Changed cursor type and highlighted background colour on browse menu …
Browse files Browse the repository at this point in the history
…rows.
  • Loading branch information
stuartwoodman committed Apr 17, 2024
1 parent eb76c46 commit 91a9f8f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/browsepanel/browsepanel.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<div class="container text-left">
<a style="font-weight: bold">Featured Layer Groups</a>
<div class="row align-items-start" *ngFor="let layerGroup of layerGroupColumn | keyvalue">
<div class="col">
<a (click)="selectGroup(layerGroup)">
<div class="col" (click)="selectGroup(layerGroup)">
<a>
<span class="truncate-grp" [ngClass]="{'enbolden': isGroupSelected(layerGroup)}">{{layerGroup.key}}</span>
</a>
</div>
Expand All @@ -21,8 +21,8 @@
<a *ngIf="!layerColumnHeader" style="font-weight: bold">Layers</a>
<a *ngIf="layerColumnHeader" ><span style="font-weight: bold;" class="truncate-layer">{{layerColumnHeader}} Layers</span></a>
<div class="row align-items-start" *ngFor="let layer of layerColumn">
<div class="col">
<a (click)="selectLayer(layer)">
<div class="col" (click)="selectLayer(layer)">
<a>
<span class="truncate-layer" [ngClass]="{'enbolden': isLayerSelected(layer)}">{{layer.name}}</span>
</a>
<button *ngIf="isLayerSelected(layer)" style="float:right; width:6em; padding:2px" class="btn btn-sm btn-success" type="button" title="Add layer" (click)="addLayer(layer)">
Expand Down
9 changes: 9 additions & 0 deletions src/app/browsepanel/browsepanel.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@
max-width: 200px !important;
}

.col {
cursor: pointer;
}

.col:hover {
background-color: rgba(220, 220, 220, 0.8);
border-radius: 0.3rem;
}

a, span {
font-size: 16px;
color: black;
Expand Down

0 comments on commit 91a9f8f

Please sign in to comment.