mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-24 18:13:42 +01:00
Auto-uncollapse when expanding CW
This commit is contained in:
parent
b1f9892e63
commit
6a50e73089
2 changed files with 3 additions and 6 deletions
|
@ -166,11 +166,11 @@ class StatusUnextended extends ImmutablePureComponent {
|
|||
}
|
||||
|
||||
handleExpandedToggle = () => {
|
||||
if (!this.state.isCollapsed) this.setState({ isExpanded: !this.state.isExpanded });
|
||||
this.setState({ isExpanded: !this.state.isExpanded, isCollapsed: false });
|
||||
};
|
||||
|
||||
handleCollapsedClick = () => {
|
||||
this.setState({ isCollapsed: !this.state.isCollapsed });
|
||||
this.setState({ isCollapsed: !this.state.isCollapsed, isExpanded: false });
|
||||
}
|
||||
|
||||
render () {
|
||||
|
|
|
@ -525,16 +525,13 @@
|
|||
text-transform: uppercase;
|
||||
line-height: 18px;
|
||||
cursor: pointer;
|
||||
transition: background-color .3s, color .3s;
|
||||
|
||||
&:hover {
|
||||
background: lighten($ui-base-color, 33%);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.status-collapsed &, .status-collapsed &:hover {
|
||||
background: transparent;
|
||||
color: lighten($ui-base-color, 30%);
|
||||
.status-collapsed & {
|
||||
vertical-align: bottom;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue