Merge pull request #82 from ralder/fix-mentions-dropdown

gui: fix mentions dropdown list for pc browsers
Этот коммит содержится в:
Corey Hulen
2015-06-27 21:50:03 -08:00
родитель b1c3bd37ad 0104bf822c
Коммит acc809ca88
2 изменённых файлов: 16 добавлений и 13 удалений

Просмотреть файл

@@ -8,8 +8,8 @@ module.exports = React.createClass({
render: function() { render: function() {
return ( return (
<div className="mentions-name" onClick={this.handleClick}> <div className="mentions-name" onClick={this.handleClick}>
<img className="pull-left mention-img" src={"/api/v1/users/" + this.props.id + "/image"}/> <img className="mention-img" src={"/api/v1/users/" + this.props.id + "/image"}/>
<span>@{this.props.username}</span><span style={{'color':'grey', 'marginLeft':'10px'}}>{this.props.name}</span> <span>@{this.props.username}</span><span className="mention-fullname">{this.props.name}</span>
</div> </div>
); );
} }

Просмотреть файл

@@ -3,21 +3,19 @@
background: $primary-color; background: $primary-color;
position: relative; position: relative;
z-index: 10; z-index: 10;
padding-bottom: 1px; padding-bottom: 2px;
@include border-radius(3px); @include border-radius(3px);
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
} }
.mentions--top { .mentions--top {
position: absolute; position: absolute;
z-index:99999; z-index: 1040;
.mentions-box { .mentions-box {
position:absolute; position:absolute;
background-color:#fff; background-color:#fff;
border:1px solid #ddd; border: $border-gray;
overflow:scroll; overflow-x: hidden;
overflow-y: scroll;
bottom:0; bottom:0;
} }
} }
@@ -29,10 +27,10 @@
height:37px; height:37px;
padding:2px; padding:2px;
z-index:101; z-index:101;
} cursor: pointer;
&:hover {
.mentions-name:hover { background-color:#e8eaed;
background-color:#e8eaed; }
} }
.mentions-text { .mentions-text {
@@ -46,6 +44,11 @@
border-radius: 10%; border-radius: 10%;
} }
.mention-fullname {
color: grey;
padding-left: 10px;
}
.mention-highlight { .mention-highlight {
background-color:#fff2bb; background-color:#fff2bb;
} }