From 9d66dfecf63edc045afaf4ce222b28c4efe02864 Mon Sep 17 00:00:00 2001 From: blackle Date: Sun, 8 Jan 2017 06:32:37 -0500 Subject: [PATCH] Expand dropdown leftways on status view --- .../javascripts/components/components/dropdown_menu.jsx | 6 ++++-- .../components/components/status_action_bar.jsx | 2 +- .../features/account/components/action_bar.jsx | 2 +- .../components/features/status/components/action_bar.jsx | 2 +- app/assets/stylesheets/components.scss | 9 +++++++++ 5 files changed, 16 insertions(+), 5 deletions(-) diff --git a/app/assets/javascripts/components/components/dropdown_menu.jsx b/app/assets/javascripts/components/components/dropdown_menu.jsx index 450550d55a..ffef29c001 100644 --- a/app/assets/javascripts/components/components/dropdown_menu.jsx +++ b/app/assets/javascripts/components/components/dropdown_menu.jsx @@ -1,13 +1,15 @@ import Dropdown, { DropdownTrigger, DropdownContent } from 'react-simple-dropdown'; -const DropdownMenu = ({ icon, items, size }) => { +const DropdownMenu = ({ icon, items, size, direction }) => { + const directionClass = (direction == "left") ? "dropdown__left" : "dropdown__right"; + return ( - +