From 7832425fdd71cb637cc138b88ddb506ac27665b7 Mon Sep 17 00:00:00 2001 From: Tomohiro Suwa Date: Thu, 20 Apr 2017 02:21:23 +0900 Subject: Fix css for toot button when uploading images (#2161) --- app/assets/javascripts/components/components/button.jsx | 5 ++++- .../components/features/compose/components/compose_form.jsx | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/components/components/button.jsx b/app/assets/javascripts/components/components/button.jsx index c3e184024..6c3da10fe 100644 --- a/app/assets/javascripts/components/components/button.jsx +++ b/app/assets/javascripts/components/components/button.jsx @@ -44,7 +44,10 @@ const Button = React.createClass({ cursor: 'pointer', lineHeight: `${this.props.size}px`, borderRadius: '4px', - textDecoration: 'none' + textDecoration: 'none', + whiteSpace: 'nowrap', + textOverflow: 'ellipsis', + overflow: 'hidden' }; return ( diff --git a/app/assets/javascripts/components/features/compose/components/compose_form.jsx b/app/assets/javascripts/components/features/compose/components/compose_form.jsx index fad77c8e9..805aad3d5 100644 --- a/app/assets/javascripts/components/features/compose/components/compose_form.jsx +++ b/app/assets/javascripts/components/features/compose/components/compose_form.jsx @@ -197,9 +197,9 @@ const ComposeForm = React.createClass({ -
+
-
+
-- cgit