From 96c256588767aecc2deed4849c2c8e5e82a72d16 Mon Sep 17 00:00:00 2001 From: Jerko Steiner Date: Mon, 4 Nov 2019 11:53:58 -0400 Subject: [PATCH] Make captcha width 100% --- packages/react-captcha/src/Captcha.tsx | 50 ++++++++++++++++++-------- 1 file changed, 35 insertions(+), 15 deletions(-) diff --git a/packages/react-captcha/src/Captcha.tsx b/packages/react-captcha/src/Captcha.tsx index 87f5401..d145ef4 100644 --- a/packages/react-captcha/src/Captcha.tsx +++ b/packages/react-captcha/src/Captcha.tsx @@ -12,6 +12,14 @@ export interface CaptchaState { attempt: number } +const flex = { + display: 'flex', +} + +const flexItemRight = { + marginLeft: 'auto', +} + export class Captcha extends React.PureComponent { state: CaptchaState = { type: 'image', @@ -37,26 +45,38 @@ export class Captcha extends React.PureComponent {
{type === 'image' && ( <> - - - Refresh - - {this.props.audioUrl && ( - - Click here for audio version + +
+ + Refresh + + {this.props.audioUrl && ( + + Audio version - )} + )} +
)} {type === 'audio' && ( <> -