Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Move mx_EventTile_contextual out of mx_EventTile:not([data-layout=bubble]) #8974

Merged
merged 2 commits into from
Jul 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions res/css/views/rooms/_EventBubbleTile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ limitations under the License.
display: none;
}
}

// Mirror rough designs for "greyed out" text
&.mx_EventTile_contextual .mx_EventTile_line {
opacity: 0.4;
}
}
}

Expand Down
10 changes: 6 additions & 4 deletions res/css/views/rooms/_EventTile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
}
}

.mx_RoomView_searchResultsPanel & {
&.mx_EventTile_contextual {
Copy link
Contributor Author

@luixxiul luixxiul Jul 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mx_EventTile_contextual is used for search results:

// true if this is search context (which has the effect of greying out
// the text
contextual?: boolean;

Please note the style rule has been included in mx_RoomView_searchResultsPanel on _EventBubbleTile.scss already.

opacity: 0.4;
}
}

&.mx_EventTile_highlight,
&.mx_EventTile_highlight .markdown-body {
color: $alert;
Expand Down Expand Up @@ -299,10 +305,6 @@ $threadInfoLineHeight: calc(2 * $font-12px); // See: _commons.scss
}
}

&.mx_EventTile_contextual {
opacity: 0.4;
}

.mx_EventTile_msgOption {
float: right;
text-align: right;
Expand Down