From 183c552520067aeb6d59bdfec5c84bafe3955463 Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Mon, 10 Aug 2015 14:47:47 -0700 Subject: [PATCH] fix(composer): Remove unnecessary zIndex rules, fix wrapping around Cc/Bcc/Subject icons Previously, we were adding 160px of padding to the entire To field. Now the buttons in the top right are floating inside the container and only impact the first line of participants. I also stripped out a lot of zIndex rules on the participant fields, subject, body that I think were only necessary because "once you've started adding zindexes you need them everywhere". Also changed the hover state of the buttons to be consistent. --- .../composer/lib/composer-view.cjsx | 61 ++++++++++--------- .../composer/lib/participants-text-field.cjsx | 2 +- .../composer/stylesheets/composer.less | 27 +++----- static/components/tokenizing-text-field.less | 1 + 4 files changed, 42 insertions(+), 49 deletions(-) diff --git a/internal_packages/composer/lib/composer-view.cjsx b/internal_packages/composer/lib/composer-view.cjsx index 29116e2f4..7ddff96d4 100644 --- a/internal_packages/composer/lib/composer-view.cjsx +++ b/internal_packages/composer/lib/composer-view.cjsx @@ -221,29 +221,6 @@ class ComposerView extends React.Component {@_renderBodyScrollbar()}
-
- Cc - - Bcc - - Subject - - - - -
- {@_renderFields()}
@@ -263,13 +240,37 @@ class ComposerView extends React.Component # If they're hidden, shift-tab between fields breaks. fields = [] fields.push( - +
+
+ Cc + + Bcc + + Subject + + + + +
+ +
) if @state.showcc diff --git a/internal_packages/composer/lib/participants-text-field.cjsx b/internal_packages/composer/lib/participants-text-field.cjsx index 11ba049f7..85bb113c5 100644 --- a/internal_packages/composer/lib/participants-text-field.cjsx +++ b/internal_packages/composer/lib/participants-text-field.cjsx @@ -35,7 +35,7 @@ class ParticipantsTextField extends React.Component render: => classSet = {} classSet[@props.field] = true -
+