diff --git a/res/css/_sc/feature-improvement/consistency__TextEvent/index.pcss b/res/css/_sc/feature-improvement/consistency__TextEvent/index.pcss index c8aaa05c4630..728ccb728824 100644 --- a/res/css/_sc/feature-improvement/consistency__TextEvent/index.pcss +++ b/res/css/_sc/feature-improvement/consistency__TextEvent/index.pcss @@ -22,9 +22,10 @@ limitations under the License. @import "./views/messages/_DisambiguatedProfile.pcss"; @define-mixin consistency__TextEvent { - /* Applied to IRC, modern layout, and the right panel */ - /* Not applied to Bubble layout, which has its own class name with sc_ */ - :where(.mx_RoomView_body[data-layout="irc"], .mx_RoomView_body[data-layout="group"], .mx_RightPanel) { + /* Applied to IRC, modern layout, and the right panel. Not applied to the + rest of the layouts. Remove the nested :where() if it is applied to them + as well. */ + :where(.mx_RoomView_body:where([data-layout="irc"], [data-layout="group"]), .mx_RightPanel) { @mixin DisambiguatedProfile; @mixin EventTile_line_M; @mixin EventTile_line_color;