1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-24 06:28:42 +01:00

Fixes mobile to use document as container for scrolling (#223)

* Uses intersectionObserver instead

* Use intersectionObserver

* Updates mods

* Adds title when more than one container is active

* Updates logic to use native scrolling when only one logger view is open

* Fixes broken test

* Uses close instead of closed

* Fixes scrollingParent
This commit is contained in:
Amir Raminfar
2020-01-06 16:28:45 -08:00
committed by GitHub
parent 86bb4e12b3
commit 678b197d6a
14 changed files with 146 additions and 92 deletions

View File

@@ -49,12 +49,7 @@ export default {
},
computed: {
...mapState(["containers", "activeContainers"]),
activeContainersById() {
return this.activeContainers.reduce((map, obj) => {
map[obj.id] = obj;
return map;
}, {});
}
...mapGetters(["activeContainersById"])
},
methods: {
...mapActions({
@@ -68,6 +63,7 @@ aside {
padding: 1em;
height: 100vh;
overflow: auto;
position: fixed;
.hide-overflow {
text-overflow: ellipsis;