Don't clip editor_area bg when scrollbar appears.
Instead of applying the background-color to the holder, apply it to the editor area and message area separately. Then they can flex differently so that the editor always maintains full height, and the message area shrinks to a minimum of 30px.
This commit is contained in:
parent
bc5df9f1c2
commit
aa30d5903d
1 changed files with 21 additions and 3 deletions
|
@ -32,18 +32,34 @@
|
|||
flex-direction: column;
|
||||
|
||||
max-width: 300px;
|
||||
padding: 8px;
|
||||
/*padding: 8px;*/
|
||||
|
||||
background-color: rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
#editor_area
|
||||
{
|
||||
flex: 3;
|
||||
padding: 8px;
|
||||
|
||||
background-color: rgba(0, 0, 0, 0.1);
|
||||
|
||||
word-wrap: break-word;
|
||||
}
|
||||
#message_area_bg
|
||||
{
|
||||
display: flex;
|
||||
flex: 0 1 100%;
|
||||
|
||||
height: 100%;
|
||||
min-height: 30px;
|
||||
padding: 8px;
|
||||
|
||||
background-color: rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
#message_area
|
||||
{
|
||||
flex: auto;
|
||||
|
||||
max-height: none;
|
||||
}
|
||||
.photo_viewer
|
||||
{
|
||||
|
@ -200,9 +216,11 @@
|
|||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
<div id="message_area_bg">
|
||||
<div id="message_area">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="right">
|
||||
|
|
Loading…
Reference in a new issue