Skip to content

Commit e3e2e3a

Browse files
authored
Merge pull request element-hq#3453 from vector-im/luke/display-redactions-better
Better CSS for redactions
2 parents 2efcf70 + 49be954 commit e3e2e3a

2 files changed

Lines changed: 8 additions & 9 deletions

File tree

‎src/components/views/context_menus/MessageContextMenu.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ module.exports = React.createClass({
121121
);
122122
}
123123

124-
if (!eventStatus) { // sent
124+
if (!eventStatus && !this.props.mxEvent.isRedacted()) { // sent and not redacted
125125
redactButton = (
126126
<div className="mx_MessageContextMenu_field" onClick={this.onRedactClick}>
127127
Redact

‎src/skins/vector/css/matrix-react-sdk/views/rooms/_EventTile.scss‎

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,13 @@ limitations under the License.
130130
color: $event-notsent-color;
131131
}
132132

133-
.mx_EventTile_redacted {
134-
padding-top: 0px;
135-
}
136-
137-
.mx_EventTile_redacted .mx_EventTile_line,
138-
.mx_EventTile_redacted:hover .mx_EventTile_line,
139-
.mx_EventTile_redacted.menu .mx_EventTile_line {
140-
background-color: $primary-fg-color;
133+
.mx_EventTile_redacted .mx_EventTile_line .mx_UnknownBody {
134+
display: block;
135+
width: 100%;
136+
max-width: 300px;
137+
height: 24px;
138+
border-radius: 4px;
139+
background-color: black;
141140
}
142141

143142
.mx_EventTile_highlight,

0 commit comments

Comments
 (0)