feat(composer): subject label is a placeholder

This commit is contained in:
Evan Morikawa 2015-03-19 16:57:41 -07:00
parent ffd762a9bc
commit 891f86ebce
3 changed files with 13 additions and 6 deletions

View file

@ -176,11 +176,11 @@ ComposerView = React.createClass
key="subject"
name="subject"
tabIndex="108"
placeholder="Subject:"
disabled={not @state.showsubject}
className="compose-field compose-subject"
value={@state.subject}
onChange={@_onChangeSubject}/>
<div className="subject-label">Subject:</div>
</div>
<div className="compose-body">

View file

@ -123,6 +123,12 @@
background-color: transparent;
border: none;
}
input.compose-field.compose-subject {
&::-webkit-input-placeholder {
color: @text-color-very-subtle;
}
margin-left: 0;
}
}
.compose-body {

View file

@ -42,11 +42,6 @@ MessageParticipants = React.createClass
<div className="participant-name to-contact">{@_fullContact(@props.to)}</div>
</div>
<div className="participant-type">
<div className="subject-label">Subject:&nbsp;</div>
<div className="subject">{@props.subject}</div>
</div>
<div className="participant-type"
style={if @props.cc?.length > 0 then display:"block" else display:"none"}>
<div className="participant-label cc-label">Cc:&nbsp;</div>
@ -58,6 +53,12 @@ MessageParticipants = React.createClass
<div className="participant-label bcc-label">Bcc:&nbsp;</div>
<div className="participant-name cc-contact">{@_fullContact(@props.bcc)}</div>
</div>
<div className="participant-type">
<div className="subject-label">Subject:&nbsp;</div>
<div className="subject">{@props.subject}</div>
</div>
</div>
_shortNames: (contacts=[]) ->