From 2342ee81fa7ad128f0a461582eb94129643f4686 Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Mon, 4 Mar 2024 01:56:12 -0500 Subject: [PATCH] Add a comment to explain why display property is used instead of visibility one Signed-off-by: Suguru Hirahara --- res/css/_sc/views/rooms/_IRCLayout.pcss | 3 +++ 1 file changed, 3 insertions(+) diff --git a/res/css/_sc/views/rooms/_IRCLayout.pcss b/res/css/_sc/views/rooms/_IRCLayout.pcss index c7f5f920780..9c4cfb65bd6 100644 --- a/res/css/_sc/views/rooms/_IRCLayout.pcss +++ b/res/css/_sc/views/rooms/_IRCLayout.pcss @@ -35,6 +35,9 @@ limitations under the License. } @define-mixin sc_DisambiguatedProfile_visibility { + /* On the upstream, appearance of mxid on disambiguatedProfile is managed by + "visibility" property. Since it renders mxid hiding it and pushes + displayName to the left side, we need to use display property instead. */ .mx_DisambiguatedProfile { > .mx_DisambiguatedProfile_mxid { display: none;