Skip to content

Commit

Permalink
fix(story-globe): fix timeslider position on desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Helms authored and Andreas Helms committed May 23, 2024
1 parent f757bbd commit 078c57d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ compareThumb()
.input
position: absolute
top: 0
left: 0
z-index: 2
margin: 0
width: 100%
Expand Down
5 changes: 4 additions & 1 deletion src/scripts/selectors/layers/list-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ export function layerListItemSelector(

const layers = layersSelector(state);
// @ts-ignore
const subLayers = layers.map(layer => layer.subLayers).flat();
const subLayers = layers
.map(layer => layer.subLayers)
.flat()
.filter(Boolean);
const allLayers = [...layers, ...subLayers];
return allLayers.find(layer => layer.id === layerId) || null;
}

0 comments on commit 078c57d

Please sign in to comment.