From 8f18c8f9ad169edc24474a950e959f8d68973166 Mon Sep 17 00:00:00 2001 From: Anthony Bellew Date: Thu, 26 Jan 2017 03:02:42 -0700 Subject: [PATCH] Added inline spoiler button styles --- .../components/components/status_content.jsx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/components/components/status_content.jsx b/app/assets/javascripts/components/components/status_content.jsx index 476d4520d7e..397374a7550 100644 --- a/app/assets/javascripts/components/components/status_content.jsx +++ b/app/assets/javascripts/components/components/status_content.jsx @@ -86,6 +86,15 @@ const StatusContent = React.createClass({ const content = { __html: emojify(status.get('content')) }; const spoilerContent = { __html: emojify(status.get('spoiler_text', '')) }; + const spoilerStyle = { + backgroundColor: '#fff', + borderRadius: '0 4px', + color: '#363c4b', + fontWeight: '500', + fontSize: '12px', + textTransform: 'uppercase' + }; + if (status.get('spoiler_text').length > 0) { const toggleText = hidden ? : ; @@ -93,7 +102,8 @@ const StatusContent = React.createClass({ return (