From 05e964688d1cfb0e485eb275ba92fb7d2ccf4510 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 450550d5..ffef29c0 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 ( - +