Skip to content

Commit

Permalink
Add scroll for info panel (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
zlant committed Mar 18, 2023
1 parent e02c231 commit 1f6e745
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/parking/controls/lane-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ export default L.Control.extend({
<div id="lane-control"
class="leaflet-control-layers control-padding"
style="display: none"
onwheel=${L.DomEvent.stopPropagation}
ontouchstart=${L.DomEvent.stopPropagation}
onmousedown=${L.DomEvent.stopPropagation}
ondblclick=${L.DomEvent.stopPropagation}
onpointerdown=${L.DomEvent.stopPropagation}
Expand Down
6 changes: 6 additions & 0 deletions src/styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ input[type="datetime-local"]::-webkit-calendar-picker-indicator {

// lane-info

#lane-control {
max-width: calc(100vw - 40px);
max-height: calc(100vh - 240px);
overflow: auto;
}

.tags-block {
padding: 5px;
}
Expand Down

0 comments on commit 1f6e745

Please sign in to comment.