Fix sidebar category overflow
This commit is contained in:
parent
083f728404
commit
722afe8c12
2 changed files with 8 additions and 6 deletions
|
|
@ -40,8 +40,8 @@ class CategoryItem extends React.Component {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="category__info" onClick={() => this.handleSelect()}>
|
<div className="category__info" onClick={() => this.handleSelect()}>
|
||||||
<span>{this.props.category.name}</span>
|
<span className="category__name">{this.props.category.name}</span>
|
||||||
<span className="badge">{this.props.category.unread}</span>
|
<span className="badge category__badge">{this.props.category.unread}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,16 +14,18 @@
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
|
||||||
& h4 {
|
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&__name {
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
&__menu {
|
&__menu {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue