This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +34
-7
lines changed
res/css/voice-broadcast/atoms
src/voice-broadcast/components/atoms
test/voice-broadcast/components Expand file tree Collapse file tree 6 files changed +34
-7
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,11 @@ limitations under the License.
20
20
width : 266 px ;
21
21
}
22
22
23
+ .mx_VoiceBroadcastHeader_content {
24
+ flex-grow : 1 ;
25
+ min-width : 0 ;
26
+ }
27
+
23
28
.mx_VoiceBroadcastHeader_room {
24
29
font-size : $font-12px ;
25
30
font-weight : $font-semi-bold ;
@@ -34,4 +39,14 @@ limitations under the License.
34
39
font-size : $font-12px ;
35
40
display : flex;
36
41
gap : $spacing-4 ;
42
+
43
+ i {
44
+ flex-shrink : 0 ;
45
+ }
46
+
47
+ span {
48
+ overflow : hidden;
49
+ text-overflow : ellipsis;
50
+ white-space : nowrap;
51
+ }
37
52
}
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ export const VoiceBroadcastHeader: React.FC<VoiceBroadcastHeaderProps> = ({
47
47
</ div >
48
48
< div className = "mx_VoiceBroadcastHeader_line" >
49
49
< Icon type = { IconType . Microphone } colour = { IconColour . CompoundSecondaryContent } />
50
- { sender . name }
50
+ < span > { sender . name } </ span >
51
51
</ div >
52
52
{ broadcast }
53
53
</ div >
Original file line number Diff line number Diff line change @@ -28,7 +28,9 @@ exports[`VoiceBroadcastHeader when rendering a live broadcast header with broadc
28
28
role = " presentation"
29
29
style = " mask-image: url(\\" image-file-stub\\");"
30
30
/>
31
- test user
31
+ <span >
32
+ test user
33
+ </span >
32
34
</div >
33
35
<div
34
36
class = " mx_VoiceBroadcastHeader_line"
@@ -85,7 +87,9 @@ exports[`VoiceBroadcastHeader when rendering a non-live broadcast header should
85
87
role = " presentation"
86
88
style = " mask-image: url(\\" image-file-stub\\");"
87
89
/>
88
- test user
90
+ <span >
91
+ test user
92
+ </span >
89
93
</div >
90
94
</div >
91
95
</div >
Original file line number Diff line number Diff line change @@ -31,7 +31,9 @@ exports[`VoiceBroadcastPlaybackBody when rendering a broadcast should render as
31
31
role = " presentation"
32
32
style = " mask-image: url(\\" image-file-stub\\");"
33
33
/>
34
- @user:example.com
34
+ <span >
35
+ @user:example.com
36
+ </span >
35
37
</div >
36
38
<div
37
39
class = " mx_VoiceBroadcastHeader_line"
@@ -109,7 +111,9 @@ exports[`VoiceBroadcastPlaybackBody when rendering a buffering voice broadcast s
109
111
role = " presentation"
110
112
style = " mask-image: url(\\" image-file-stub\\");"
111
113
/>
112
- @user:example.com
114
+ <span >
115
+ @user:example.com
116
+ </span >
113
117
</div >
114
118
<div
115
119
class = " mx_VoiceBroadcastHeader_line"
Original file line number Diff line number Diff line change @@ -31,7 +31,9 @@ exports[`VoiceBroadcastRecordingBody when rendering a live broadcast should rend
31
31
role = " presentation"
32
32
style = " mask-image: url(\\" image-file-stub\\");"
33
33
/>
34
- @user:example.com
34
+ <span >
35
+ @user:example.com
36
+ </span >
35
37
</div >
36
38
</div >
37
39
<div
Original file line number Diff line number Diff line change @@ -31,7 +31,9 @@ exports[`VoiceBroadcastRecordingPip when rendering should create the expected re
31
31
role = " presentation"
32
32
style = " mask-image: url(\\" image-file-stub\\");"
33
33
/>
34
- @user:example.com
34
+ <span >
35
+ @user:example.com
36
+ </span >
35
37
</div >
36
38
</div >
37
39
<div
You can’t perform that action at this time.
0 commit comments