From 330f52f2532a47fb22bc6528b496b03271d66392 Mon Sep 17 00:00:00 2001 From: luin Date: Sat, 3 Dec 2016 15:26:22 +0800 Subject: [PATCH] fix: ui issues when switching between tabs closes #1 --- .../Database/Content/KeyContent/Editor.jsx | 50 ++++++++++--------- .../Database/Content/KeyContent/Editor.scss | 1 + package.json | 8 +-- 3 files changed, 32 insertions(+), 27 deletions(-) diff --git a/client/components/main/Main/Database/Content/KeyContent/Editor.jsx b/client/components/main/Main/Database/Content/KeyContent/Editor.jsx index 9719b426..a95bc2a3 100644 --- a/client/components/main/Main/Database/Content/KeyContent/Editor.jsx +++ b/client/components/main/Main/Database/Content/KeyContent/Editor.jsx @@ -197,33 +197,37 @@ class Editor extends React.Component { viewer =
; } return
- - - { viewer } +
+ + + +
; } } diff --git a/client/components/main/Main/Database/Content/KeyContent/Editor.scss b/client/components/main/Main/Database/Content/KeyContent/Editor.scss index a76a1bae..9d9867cd 100644 --- a/client/components/main/Main/Database/Content/KeyContent/Editor.scss +++ b/client/components/main/Main/Database/Content/KeyContent/Editor.scss @@ -21,6 +21,7 @@ position: relative; flex: 1; display: flex; + width: 100%; &:before { content: ''; diff --git a/package.json b/package.json index b215fc69..b01aedd7 100644 --- a/package.json +++ b/package.json @@ -20,11 +20,11 @@ "url": "git://github.com/luin/medis.git" }, "dependencies": { - "codemirror": "^5.10.0", + "codemirror": "^5.18.0", "fixed-data-table-contextmenu": "^0.6.3", "form-generator-react": "^1.0.5", "human-format": "^0.5.0", - "immutable": "^3.7.5", + "immutable": "^3.8.1", "ioredis": "^1.11.1", "jquery": "^2.1.4", "json-editor": "^0.7.23", @@ -34,11 +34,11 @@ "msgpack5": "^3.3.0", "react": "^0.14.0", "react-addons-css-transition-group": "^0.14.3", - "react-codemirror": "^0.2.0", + "react-codemirror": "^0.3.0", "react-document-title": "^2.0.1", "react-dom": "^0.14.0", "react-draggable": "^1.1.3", - "react-redux": "^4.0.0", + "react-redux": "^4.4.6", "react-split-pane": "0.1.16", "redis-commands": "^1.0.1", "redis-splitargs": "^1.0.0",