fix(reply-area): Use existing flexbox so message-wrap and reply area never competing for clickability

Summary: Just a couple CSS tweaks

Test Plan: Run tests

Reviewers: evan

Reviewed By: evan

Differential Revision: https://review.inboxapp.com/D1364
This commit is contained in:
Ben Gotow 2015-03-27 16:35:55 -07:00
parent 9859e594f2
commit 6c7760c7e3
2 changed files with 2 additions and 10 deletions

View file

@ -55,7 +55,6 @@ MessageList = React.createClass
wrapClass = React.addons.classSet
"messages-wrap": true
"has-reply-area": @_hasReplyArea()
"ready": @state.ready
<div className="message-list" id="message-list">

View file

@ -54,7 +54,7 @@
}
#message-list {
display: flex;
flex-direction: row;
flex-direction: column;
position: relative;
width: 100%;
@ -76,13 +76,10 @@
}
.messages-wrap {
flex: 4;
flex: 1;
overflow-y: auto;
opacity:0;
transition: opacity 0s;
&.has-reply-area {
padding-bottom: 63px; // height of reply footer
}
}
.messages-wrap.ready {
opacity:1;
@ -226,14 +223,10 @@
}
.footer-reply-area-wrap {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
color: @text-color-very-subtle;
border-top: 1px solid @border-color-divider;
background: @background-primary;
z-index: 10;
&:hover {
cursor: default;