From f7dc62460c919787af23c9c87ed0549e6d021e97 Mon Sep 17 00:00:00 2001 From: mgabdev <> Date: Wed, 28 Oct 2020 23:25:29 -0500 Subject: [PATCH] Added textAlignRight style to Text MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Added: - textAlignRight style to Text --- app/javascript/gabsocial/components/text.js | 2 ++ app/javascript/styles/global.css | 1 + 2 files changed, 3 insertions(+) diff --git a/app/javascript/gabsocial/components/text.js b/app/javascript/gabsocial/components/text.js index a4b43b20..050d3aa8 100644 --- a/app/javascript/gabsocial/components/text.js +++ b/app/javascript/gabsocial/components/text.js @@ -36,6 +36,7 @@ const WEIGHTS = { const ALIGNMENTS = { center: 'center', left: 'left', + right: 'right', } /** @@ -97,6 +98,7 @@ class Text extends React.PureComponent { fw800: weight === WEIGHTS.extraBold, textAlignLeft: align === ALIGNMENTS.left, + textAlignRight: align === ALIGNMENTS.right, textAlignCenter: align === ALIGNMENTS.center, underline: hasUnderline, diff --git a/app/javascript/styles/global.css b/app/javascript/styles/global.css index a37f6ca6..89e24068 100644 --- a/app/javascript/styles/global.css +++ b/app/javascript/styles/global.css @@ -699,6 +699,7 @@ pre { } } +.textAlignRight { text-align: right; } .textAlignLeft { text-align: left; } .textAlignCenter { text-align: center; }