diff --git a/app/javascript/mastodon/features/about/index.jsx b/app/javascript/mastodon/features/about/index.jsx index 0d83da71dcf..239fea1933c 100644 --- a/app/javascript/mastodon/features/about/index.jsx +++ b/app/javascript/mastodon/features/about/index.jsx @@ -62,10 +62,11 @@ class Section extends PureComponent { collapsed: !this.props.open, }; - handleClick = (e) => { + handleClick = () => { const { onOpen } = this.props; - - this.setState({ collapsed: !e.currentTarget.open }, () => onOpen && onOpen()); + const { collapsed } = this.state; + + this.setState({ collapsed: !collapsed }, () => onOpen && onOpen()); }; render () { @@ -73,13 +74,15 @@ class Section extends PureComponent { const { collapsed } = this.state; return ( -
- +
+
+ -
{children}
-
+ {!collapsed && ( +
{children}
+ )} + ); } diff --git a/app/javascript/styles/mastodon/components.scss b/app/javascript/styles/mastodon/components.scss index 02a038dfc78..1e71b504447 100644 --- a/app/javascript/styles/mastodon/components.scss +++ b/app/javascript/styles/mastodon/components.scss @@ -9146,11 +9146,8 @@ noscript { background: lighten($ui-base-color, 4%); color: $highlight-text-color; cursor: pointer; - list-style: none; - } - - &__title::-webkit-details-marker { - display: none; + border: unset; + width: 100%; } &.active &__title {