From 0d8f84c769b9bee61acc299c461f9788547d9ec5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Fri, 2 Jul 2021 15:35:52 +0200 Subject: [PATCH] Delete lozenge effect MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- res/css/views/rooms/_ReplyTile.scss | 22 -------------------- src/components/views/elements/ReplyThread.js | 1 - src/components/views/rooms/ReplyPreview.js | 1 - src/components/views/rooms/ReplyTile.tsx | 2 -- 4 files changed, 26 deletions(-) diff --git a/res/css/views/rooms/_ReplyTile.scss b/res/css/views/rooms/_ReplyTile.scss index 027b9626a6..d8184d01be 100644 --- a/res/css/views/rooms/_ReplyTile.scss +++ b/res/css/views/rooms/_ReplyTile.scss @@ -96,28 +96,6 @@ limitations under the License. max-width: calc(100% - 65px); } -.mx_ReplyTile_redacted .mx_UnknownBody { - --lozenge-color: $event-redacted-fg-color; - --lozenge-border-color: $event-redacted-border-color; - display: block; - height: 22px; - width: 250px; - border-radius: 11px; - background: - repeating-linear-gradient( - -45deg, - var(--lozenge-color), - var(--lozenge-color) 3px, - transparent 3px, - transparent 6px - ); - box-shadow: 0px 0px 3px var(--lozenge-border-color) inset; -} - -.mx_ReplyTile_sending.mx_ReplyTile_redacted .mx_UnknownBody { - opacity: 0.4; -} - .mx_ReplyTile_contextual { opacity: 0.4; } diff --git a/src/components/views/elements/ReplyThread.js b/src/components/views/elements/ReplyThread.js index f199cd53b5..d309c718dd 100644 --- a/src/components/views/elements/ReplyThread.js +++ b/src/components/views/elements/ReplyThread.js @@ -382,7 +382,6 @@ export default class ReplyThread extends React.Component { mxEvent={ev} onHeightChanged={this.props.onHeightChanged} permalinkCreator={this.props.permalinkCreator} - isRedacted={ev.isRedacted()} isTwelveHour={SettingsStore.getValue("showTwelveHourTimestamps")} layout={this.props.layout} alwaysShowTimestamps={this.props.alwaysShowTimestamps} diff --git a/src/components/views/rooms/ReplyPreview.js b/src/components/views/rooms/ReplyPreview.js index 1dbec2451a..ca95dbb62f 100644 --- a/src/components/views/rooms/ReplyPreview.js +++ b/src/components/views/rooms/ReplyPreview.js @@ -88,7 +88,6 @@ export default class ReplyPreview extends React.Component {
diff --git a/src/components/views/rooms/ReplyTile.tsx b/src/components/views/rooms/ReplyTile.tsx index 6a01e8dc97..757c273b50 100644 --- a/src/components/views/rooms/ReplyTile.tsx +++ b/src/components/views/rooms/ReplyTile.tsx @@ -29,7 +29,6 @@ import * as sdk from '../../../index'; interface IProps { mxEvent: MatrixEvent; - isRedacted?: boolean; permalinkCreator?: RoomPermalinkCreator; highlights?: Array; highlightLink?: string; @@ -108,7 +107,6 @@ export default class ReplyTile extends React.PureComponent { const classes = classNames({ mx_ReplyTile: true, mx_ReplyTile_info: isInfoMessage, - mx_ReplyTile_redacted: this.props.isRedacted, }); let permalink = "#";