From 297fdaebd192eadd15732ffcbc792eb4b3e22121 Mon Sep 17 00:00:00 2001 From: Johan Girod Date: Thu, 26 Apr 2018 16:45:56 +0200 Subject: [PATCH] =?UTF-8?q?:art:=20d=C3=A9place=20les=20r=C3=A9ponses=20su?= =?UTF-8?q?r=20le=20cot=C3=A9=20droit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit les réponses sont ainsi toutes située du même coté, et juste à coté du bouton valider --- source/components/conversation/Explicable.css | 1 + source/components/conversation/Explicable.js | 16 ++++++++----- source/components/conversation/Question.css | 5 ++++ source/components/conversation/Question.js | 10 ++++++-- .../components/conversation/conversation.css | 23 +++++++++---------- 5 files changed, 35 insertions(+), 20 deletions(-) create mode 100644 source/components/conversation/Question.css diff --git a/source/components/conversation/Explicable.css b/source/components/conversation/Explicable.css index 95ead2a8b..2ffde92a4 100644 --- a/source/components/conversation/Explicable.css +++ b/source/components/conversation/Explicable.css @@ -1,5 +1,6 @@ .explicable { display: flex; + justify-content: flex-end; align-items: center; } diff --git a/source/components/conversation/Explicable.js b/source/components/conversation/Explicable.js index a82370f31..61559fd28 100644 --- a/source/components/conversation/Explicable.js +++ b/source/components/conversation/Explicable.js @@ -19,7 +19,13 @@ import ReactPiwik from '../Tracker' ) export default class Explicable extends React.Component { render() { - let { flatRules, dottedName, explain, explained, textColourOnWhite } = this.props + let { + flatRules, + dottedName, + explain, + explained, + textColourOnWhite + } = this.props // Rien à expliquer ici, ce n'est pas une règle if (dottedName == null) return this.props.children @@ -34,8 +40,7 @@ export default class Explicable extends React.Component { + })}> {this.props.children} + }>