From: blackle Date: Sun, 8 Jan 2017 11:32:37 +0000 (-0500) Subject: Expand dropdown leftways on status view X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=05e964688d1cfb0e485eb275ba92fb7d2ccf4510;p=mastodon.git Expand dropdown leftways on status view --- diff --git a/app/assets/javascripts/components/components/dropdown_menu.jsx b/app/assets/javascripts/components/components/dropdown_menu.jsx index 450550d55..ffef29c00 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 ( - +