make desc edit area larger and resizable

This commit is contained in:
Connor Turland 2017-09-17 09:01:44 -04:00
parent ad2ba33db6
commit 3886e62a7b
2 changed files with 5 additions and 8 deletions

View file

@ -139,14 +139,12 @@ $mid-gray-opacity: rgba(66, 66, 66, 0.6);
font-family: helvetica, sans-serif;
color: #424242;
padding: 0;
width: 100%;
width: 258px;
margin: 0;
border: 0;
outline: none;
font-size: 12px;
line-height: 15px;
background: none;
resize: none;
overflow-y: scroll;
}
/*
@ -180,11 +178,9 @@ $mid-gray-opacity: rgba(66, 66, 66, 0.6);
.CardOnGraph .riek_desc {
display:block;
margin-top:2px;
padding-right: 18px;
margin-right: 8px;
padding-right: 26px;
}
.canEdit .CardOnGraph .riek_desc:hover {
.canEdit .CardOnGraph .riek_desc:not(.riek-editing):hover {
background-image: url(<%= asset_data_uri('edit.png') %>);
background-position: top right;
background-repeat: no-repeat;

View file

@ -38,6 +38,7 @@ class Desc extends Component {
change={this.props.onChange}
className="riek_desc"
classEditing="riek-editing"
rows="6"
editProps={{
onKeyPress: e => {
const ENTER = 13