Skip to content

Commit

Permalink
release: v2.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
surunzi committed Dec 7, 2022
1 parent 7165dc6 commit bfc5b82
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.7.2 (7 Dec 2022)

* fix: luna modal style

## 2.7.1 (7 Dec 2022)

* fix: remove debug log
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eruda",
"version": "2.7.1",
"version": "2.7.2",
"description": "Console for Mobile Browsers",
"main": "eruda.js",
"browserslist": [
Expand Down Expand Up @@ -71,7 +71,7 @@
"luna-console": "^1.1.2",
"luna-data-grid": "^0.2.1",
"luna-dom-viewer": "^1.0.2",
"luna-modal": "^0.1.1",
"luna-modal": "^0.1.2",
"luna-notification": "^0.1.4",
"luna-object-viewer": "^0.2.2",
"node-sass": "^7.0.1",
Expand Down
6 changes: 6 additions & 0 deletions src/DevTools/DevTools.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import extend from 'licia/extend'
import evalCss from '../lib/evalCss'
import { isDarkTheme } from '../lib/themes'
import LunaNotification from 'luna-notification'
import LunaModal from 'luna-modal'
import { classPrefix as c } from '../lib/util'

export default class DevTools extends Emitter {
Expand Down Expand Up @@ -45,6 +46,7 @@ export default class DevTools extends Emitter {
this._appendTpl()
this._initNavBar()
this._initNotification()
this._initModal()
this._bindEvent()
}
show() {
Expand Down Expand Up @@ -227,6 +229,7 @@ export default class DevTools extends Emitter {
</div>
<div class="tools"></div>
<div class="notification"></div>
<div class="modal"></div>
</div>
`)
)
Expand All @@ -249,6 +252,9 @@ export default class DevTools extends Emitter {
}
)
}
_initModal() {
LunaModal.setContainer(this._$el.find(c('.modal')).get(0))
}
_bindEvent() {
const $resizer = this._$el.find(c('.resizer'))
const $navBar = this._$el.find(c('.nav-bar'))
Expand Down
4 changes: 1 addition & 3 deletions src/eruda.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,6 @@ export default {
const className = 'eruda-style-container'
const $el = this._$el

evalCss.container = document.head
evalCss(require('luna-modal/luna-modal.css'))

if (this._shadowRoot) {
evalCss.container = this._shadowRoot
evalCss(':host { all: initial }')
Expand All @@ -212,6 +209,7 @@ export default {
require('luna-notification/luna-notification.css') +
require('luna-data-grid/luna-data-grid.css') +
require('luna-dom-viewer/luna-dom-viewer.css') +
require('luna-modal/luna-modal.css') +
require('./style/style.scss') +
require('./style/icon.css')
)
Expand Down
2 changes: 0 additions & 2 deletions src/style/luna.scss
Original file line number Diff line number Diff line change
Expand Up @@ -249,13 +249,11 @@

.luna-modal-button-group {
.luna-modal-secondary {
overflow: hidden;
border-color: var(--border);
color: var(--foreground);
background: var(--background);
}
.luna-modal-primary {
overflow: hidden;
background: var(--accent);
}
.luna-modal-button {
Expand Down

0 comments on commit bfc5b82

Please sign in to comment.