Skip to content

Commit

Permalink
Merge branch 'patch' into node-fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
RobAndrewHurst authored Nov 1, 2024
2 parents ae52476 + ce5f338 commit 7908dbd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/ui/layers/listview.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export default function (params) {
group.meta = mapp.utils.html.node`<div class="meta">`

group.drawer = mapp.ui.elements.drawer({
data_id: `layer-drawer`,
data_id: layer.group,
class: `layer-group ${layer.groupClassList || ''}`,
header: mapp.utils.html`
<h2>${layer.group}</h2>
Expand Down
4 changes: 2 additions & 2 deletions lib/ui/layers/view.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export default function layerView(layer) {
const drawerClass = `layer-view raised ${layer.classList || ''} ${content.length ? '' : 'empty'}`

layer.drawer = mapp.ui.elements.drawer({
data_id: `layer-drawer`,
data_id: layer.key,
class: drawerClass,
header,
content
Expand Down Expand Up @@ -242,7 +242,7 @@ function changeEnd(layer) {
layer.zoomBtn.style.display = 'block'

// Collapse drawer and disable layer.view.
layer.view.querySelector('[data-id=layer-drawer]').classList.remove('expanded')
layer.view.querySelector('.layer-view.drawer').classList.remove('expanded')

// Disable layer display toggle.
layer.displayToggle.classList.add('disabled')
Expand Down
2 changes: 1 addition & 1 deletion public/views/_default.html
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@
// Show the tabview if not already visible.
if (tabview.classList.contains('desktop-display-none')) {
tabview.classList.remove('desktop-display-none');
document.body.style.gridTemplateRows = 'auto 10px 50px';
document.body.style.gridTemplateRows = 'auto 10px 200px';
}
},
removeLastTab: () => {
Expand Down

0 comments on commit 7908dbd

Please sign in to comment.