Skip to content

Commit 6a2ac06

Browse files
committed
code-panel: hide if minimized
1 parent 1d53915 commit 6a2ac06

File tree

4 files changed

+13
-10
lines changed

4 files changed

+13
-10
lines changed

Diff for: app/build/mojs-curve-editor.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -10717,7 +10717,9 @@ return /******/ (function(modules) { // webpackBootstrap
1071710717
var state = _ref.state;
1071810718
var points = state.points;
1071910719
var controls = state.controls;
10720-
var open = controls.isCode ? CLASSES['is-open'] : '';
10720+
10721+
var isShow = controls.isCode && !controls.isMinimize;
10722+
var open = isShow ? CLASSES['is-open'] : '';
1072110723
var mainClass = CLASSES['code-panel'] + ' ' + open;
1072210724

1072310725
return (0, _preact.h)(

Diff for: app/build/mojs-curve-editor.min.js

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: app/js/tags/code-panel.babel.jsx

+4-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ import ResizeHandle from './resize-handle';
66
require('../../css/blocks/code-panel');
77
const CLASSES = require('../../css/blocks/code-panel.postcss.css.json');
88
export default ({state}) => {
9-
const {points, controls} = state,
10-
open = (controls.isCode) ? CLASSES['is-open'] : '',
11-
mainClass = `${CLASSES['code-panel']} ${open}`;
9+
const {points, controls} = state;
10+
const isShow = controls.isCode && !controls.isMinimize
11+
const open = (isShow) ? CLASSES['is-open'] : '';
12+
const mainClass = `${CLASSES['code-panel']} ${open}`;
1213

1314
return <div className={mainClass}>
1415
<div className={ CLASSES['code-panel__inner'] }>

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mojs-curve-editor",
3-
"version": "1.4.3",
3+
"version": "1.4.4",
44
"description": "mojs GUI for editing easing/property curves",
55
"keywords": [
66
"mojs",

0 commit comments

Comments
 (0)