From dd49c10cdb67fd7221cc48f9adeaa1d30ae36a6b Mon Sep 17 00:00:00 2001 From: Surinna Curtis Date: Thu, 29 Jun 2017 23:45:09 -0500 Subject: [PATCH] Further improvements to dropdown html --- .../components/advanced_options_dropdown.js | 26 ++++++++++++++++--- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/app/javascript/mastodon/features/compose/components/advanced_options_dropdown.js b/app/javascript/mastodon/features/compose/components/advanced_options_dropdown.js index 0039ba52feb..35a340565fc 100644 --- a/app/javascript/mastodon/features/compose/components/advanced_options_dropdown.js +++ b/app/javascript/mastodon/features/compose/components/advanced_options_dropdown.js @@ -1,6 +1,11 @@ import React from 'react'; import IconButton from '../../../components/icon_button'; +const iconStyle = { + height: null, + lineHeight: '27px', +}; + export default class AdvancedOptionsDropdown extends React.PureComponent { onToggleDropdown = () => { this.setState({ open: !this.state.open }); @@ -32,18 +37,31 @@ export default class AdvancedOptionsDropdown extends React.PureComponent { render () { const { open } = this.state; - const dropdownItems =
-
test
-
; + + const options = [ + { icon: 'wifi', shortText: 'Local-only', longText: 'bla' }, + ]; + const optionElems = options.map((option) => { + return
+
+ +
+
+ {option.shortText} + {option.longText} +
+
; + }); return
- {open && dropdownItems} + {optionElems}
; }