From 3843c2488df81840960d8db3cfdec33597e17159 Mon Sep 17 00:00:00 2001 From: Dominik Guzei Date: Wed, 4 Sep 2019 15:44:36 +0200 Subject: Resend todos config on Franz setting changes --- src/features/todos/components/TodosWebview.js | 74 ++++++++++++--------------- 1 file changed, 34 insertions(+), 40 deletions(-) (limited to 'src/features/todos/components') diff --git a/src/features/todos/components/TodosWebview.js b/src/features/todos/components/TodosWebview.js index 288c1906f..9dd313109 100644 --- a/src/features/todos/components/TodosWebview.js +++ b/src/features/todos/components/TodosWebview.js @@ -22,10 +22,6 @@ const styles = theme => ({ '&:hover $closeTodosButton': { opacity: 1, }, - }, - webview: { - height: '100%', - '& webview': { height: '100%', }, @@ -191,45 +187,43 @@ class TodosWebview extends Component { const { width, delta, isDragging } = this.state; return ( - <> -
this.stopResize()} - ref={(node) => { this.node = node; }} +
this.stopResize()} + ref={(node) => { this.node = node; }} + > + + + +
this.startResize(e)} + /> + {isDragging && (
this.startResize(e)} - /> - {isDragging && ( -
- )} - { - const { setTodosWebview } = this.props; - setTodosWebview(this.webview); - this.startListeningToIpcMessages(); - }} - partition="persist:todos" - preload="./features/todos/preload.js" - ref={(webview) => { this.webview = webview ? webview.view : null; }} - src={environment.TODOS_FRONTEND} + className={classes.dragIndicator} + style={{ left: delta }} // This hack is required as resizing with webviews beneath behaves quite bad /> -
- + )} + { + const { setTodosWebview } = this.props; + setTodosWebview(this.webview); + this.startListeningToIpcMessages(); + }} + partition="persist:todos" + preload="./features/todos/preload.js" + ref={(webview) => { this.webview = webview ? webview.view : null; }} + src={environment.TODOS_FRONTEND} + /> +
); } } -- cgit v1.2.3-70-g09d2