Skip to content

Commit

Permalink
release: v2.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
surunzi committed Dec 20, 2022
1 parent fc65e51 commit bfa3845
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 12 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.9.1 (20 Dec 2022)

* fix(elements): select element using touch events

## 2.9.0 (20 Dec 2022)

* feat(elements): integrate dom viewer
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eruda",
"version": "2.9.0",
"version": "2.9.1",
"description": "Console for Mobile Browsers",
"main": "eruda.js",
"browserslist": [
Expand Down Expand Up @@ -44,7 +44,7 @@
"autoprefixer": "^9.7.4",
"babel-eslint": "^10.1.0",
"babel-loader": "^8.2.5",
"chobitsu": "^1.4.3",
"chobitsu": "^1.4.4",
"core-js": "^3.26.1",
"css-loader": "^3.4.2",
"es-check": "^6.2.1",
Expand All @@ -65,7 +65,7 @@
"licia": "^1.37.0",
"luna-console": "^1.2.0",
"luna-data-grid": "^0.3.2",
"luna-dom-viewer": "^1.2.2",
"luna-dom-viewer": "^1.2.3",
"luna-modal": "^1.0.0",
"luna-notification": "^0.1.4",
"luna-object-viewer": "^0.2.4",
Expand Down
10 changes: 6 additions & 4 deletions src/Elements/Detail.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,12 @@ export default class Detail {
<span class="${c('element-name')}">${data.name}</span>
<span class="${c('icon-refresh refresh')}"></span>
</div>
${attribute}
${styles}
${computedStyle}
${listeners}`
<div class="${c('element')}">
${attribute}
${styles}
${computedStyle}
${listeners}
</div>`

this._$container.html(html).show()
}
Expand Down
6 changes: 3 additions & 3 deletions src/Elements/Elements.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,15 @@ export default class Elements extends Tool {
super.show()

if (!this._curNode) {
this._setNode(document.body)
this.select(document.body)
}
}
// To be removed in 3.0.0
set(node) {
return this.select(node)
}
select(node) {
this._domViewer.select(node)
this._setNode(node)
this.emit('change', node)
return this
Expand Down Expand Up @@ -155,7 +156,7 @@ export default class Elements extends Tool {
}

if (isElExist(node)) {
self._setNode(node)
self.select(node)
}
})

Expand Down Expand Up @@ -226,7 +227,6 @@ export default class Elements extends Tool {
if (node === this._curNode) return

this._curNode = node
this._domViewer.select(node)
this._renderCrumbs()

const parentQueue = []
Expand Down
5 changes: 4 additions & 1 deletion src/Elements/Elements.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
}
.detail {
@include absolute();
@include overflow-auto(y);
z-index: 10;
padding-top: 40px;
display: none;
Expand All @@ -74,6 +73,10 @@
right: 0;
}
}
.element {
@include overflow-auto(y);
height: 100%;
}
}
.section {
border-bottom: 1px solid var(--border);
Expand Down
3 changes: 2 additions & 1 deletion src/style/luna.scss
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@
}
&.luna-dom-viewer-selected:focus {
.luna-dom-viewer-selection {
background: var(--contrast);
background: var(--accent);
opacity: 0.2;
}
}
}
Expand Down

0 comments on commit bfa3845

Please sign in to comment.