diff --git a/src/Settings/Settings.scss b/src/Settings/Settings.scss index f83dd1c..03a06cb 100644 --- a/src/Settings/Settings.scss +++ b/src/Settings/Settings.scss @@ -20,6 +20,8 @@ background: #fff; font-size: $font-size; border-bottom: 1px solid $gray-light; + border-top: 1px solid $gray-light; + margin-top: -1px; } .select .head, .range .head, .color .head { transition: background $anim-duration, color $anim-duration; diff --git a/src/Sources/Sources.scss b/src/Sources/Sources.scss index 55d5668..8198545 100644 --- a/src/Sources/Sources.scss +++ b/src/Sources/Sources.scss @@ -48,7 +48,7 @@ } .img-info { text-align: center; - margin-top: 20px; + margin: 20px 0; color: $gray; } } diff --git a/src/index.js b/src/index.js index a2f7c97..84660f5 100644 --- a/src/index.js +++ b/src/index.js @@ -19,6 +19,7 @@ module.exports = { init({el, tool, autoScale = true} = {}) { this._isInit = true; + this._scale = 1; this._initContainer(el); this._initStyle(); @@ -86,8 +87,13 @@ module.exports = { this._$el.remove(); util.evalCss.clear(); }, + getScale() + { + return this._scale; + }, setScale(scale) { + this._scale = scale; emitter.emit(emitter.SCALE, scale); }, _autoScale() diff --git a/src/style/mixin.scss b/src/style/mixin.scss index 6465704..388f286 100644 --- a/src/style/mixin.scss +++ b/src/style/mixin.scss @@ -19,6 +19,7 @@ @mixin breadcrumb { background: #fff; + user-select: text; margin-bottom: 10px; word-break: break-all; padding: $padding;