This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree 2 files changed +16
-2
lines changed
src/components/views/rooms
2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,11 @@ limitations under the License.
28
28
}
29
29
30
30
> a {
31
- display : flex;
32
- flex-direction : column;
31
+ display : grid;
32
+ grid-template :
33
+ "sender" auto
34
+ "message" auto
35
+ / auto;
33
36
text-decoration : none;
34
37
color : $secondary-content ;
35
38
transition : color ease 0.15 s ;
@@ -58,6 +61,7 @@ limitations under the License.
58
61
59
62
/* We do reply size limiting with CSS to avoid duplicating the TextualBody component. */
60
63
.mx_EventTile_content {
64
+ grid-area : message;
61
65
$reply-lines : 2 ;
62
66
$line-height : $font-18px ;
63
67
@@ -102,7 +106,16 @@ limitations under the License.
102
106
padding-top : 0 ;
103
107
}
104
108
109
+ & .mx_ReplyTile_inline > a {
110
+ /* Render replies to emotes inline with the sender avatar */
111
+ grid-template :
112
+ "sender message" auto
113
+ / max-content auto;
114
+ gap : 4 px ; // increase spacing
115
+ }
116
+
105
117
.mx_ReplyTile_sender {
118
+ grid-area : sender;
106
119
display : flex;
107
120
align-items : center;
108
121
gap : 4 px ;
Original file line number Diff line number Diff line change @@ -123,6 +123,7 @@ export default class ReplyTile extends React.PureComponent<IProps> {
123
123
}
124
124
125
125
const classes = classNames ( "mx_ReplyTile" , {
126
+ mx_ReplyTile_inline : msgType === MsgType . Emote ,
126
127
mx_ReplyTile_info : isInfoMessage && ! mxEvent . isRedacted ( ) ,
127
128
mx_ReplyTile_audio : msgType === MsgType . Audio ,
128
129
mx_ReplyTile_video : msgType === MsgType . Video ,
You can’t perform that action at this time.
0 commit comments