mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-07 07:28:16 +00:00
Disables CW [Show More/Less] links in collapsed toots
This commit is contained in:
parent
6909bbdc9e
commit
d6e3918d92
|
@ -166,7 +166,7 @@ class StatusUnextended extends ImmutablePureComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
handleExpandedToggle = () => {
|
handleExpandedToggle = () => {
|
||||||
this.setState({ isExpanded: !this.state.isExpanded });
|
if (!this.state.isCollapsed) this.setState({ isExpanded: !this.state.isExpanded });
|
||||||
};
|
};
|
||||||
|
|
||||||
handleCollapsedClick = () => {
|
handleCollapsedClick = () => {
|
||||||
|
|
|
@ -504,15 +504,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.status__content__spoiler-link {
|
|
||||||
background: lighten($ui-base-color, 30%);
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
background: lighten($ui-base-color, 33%);
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.status__content__text {
|
.status__content__text {
|
||||||
display: none;
|
display: none;
|
||||||
|
|
||||||
|
@ -525,15 +516,27 @@
|
||||||
.status__content__spoiler-link {
|
.status__content__spoiler-link {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
background: transparent;
|
background: lighten($ui-base-color, 30%);
|
||||||
border: 0;
|
border: 1px lighten($ui-base-color, 30%) solid;
|
||||||
color: lighten($ui-base-color, 8%);
|
color: lighten($ui-base-color, 8%);
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
padding: 0 6px;
|
padding: 0 5px;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
line-height: inherit;
|
line-height: 18px;
|
||||||
cursor: pointer;
|
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%);
|
||||||
|
vertical-align: bottom;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.status__prepend-icon-wrapper {
|
.status__prepend-icon-wrapper {
|
||||||
|
|
Loading…
Reference in a new issue