From 579e04f64ddf8af4244d910530a1fd3f961bea27 Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Wed, 6 May 2020 20:15:04 +0300 Subject: [PATCH] fix: take as much space as possible for ndoe data on the Add panel --- public/styles/pages/editor/add.scss | 3 ++- src/Component/Editor.purs | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/public/styles/pages/editor/add.scss b/public/styles/pages/editor/add.scss index d1d9a0b..c216c22 100644 --- a/public/styles/pages/editor/add.scss +++ b/public/styles/pages/editor/add.scss @@ -99,6 +99,7 @@ flex-direction: column; height: 100%; + margin-left: 1rem; justify-content: space-evenly; } @@ -123,9 +124,9 @@ #node-text { display: flex; + flex-grow: 1; flex-direction: column; text-overflow: ellipsis; - width: calc(15rem - 100px); & > * { cursor: default; diff --git a/src/Component/Editor.purs b/src/Component/Editor.purs index b03922b..801d5e3 100644 --- a/src/Component/Editor.purs +++ b/src/Component/Editor.purs @@ -271,9 +271,7 @@ component = -- We only allow editing the example status when we are an admine isAdmin <- gets $ view _isAdmin when isAdmin $ modify_ $ set _isExample isExample - SearchNodes input -> do - printString input - modify_ $ set _nodeSearchTerm input + SearchNodes input -> modify_ $ set _nodeSearchTerm input handleTreeOutput :: TreeC.Output -> Maybe Action handleTreeOutput = case _ of