From 96c84da1d4da2c53f3a119c8c57629f49fa89fb6 Mon Sep 17 00:00:00 2001 From: alpaca-tc Date: Sat, 29 Apr 2017 21:29:13 +0900 Subject: [PATCH] Expand uploaded thumbnail (#2611) --- .../components/features/compose/components/upload_form.jsx | 2 +- app/assets/stylesheets/components.scss | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/components/features/compose/components/upload_form.jsx b/app/assets/javascripts/components/features/compose/components/upload_form.jsx index 4aafe698e..a2fb7cfe0 100644 --- a/app/assets/javascripts/components/features/compose/components/upload_form.jsx +++ b/app/assets/javascripts/components/features/compose/components/upload_form.jsx @@ -18,7 +18,7 @@ class UploadForm extends React.PureComponent {
{({ scale }) => -
+
} diff --git a/app/assets/stylesheets/components.scss b/app/assets/stylesheets/components.scss index 422575639..11d50673d 100644 --- a/app/assets/stylesheets/components.scss +++ b/app/assets/stylesheets/components.scss @@ -274,6 +274,9 @@ .compose-form__upload-thumbnail { border-radius: 4px; + background-position: center; + background-size: cover; + background-repeat: no-repeat; height: 100px; width: 100%; }