diff --git a/res/css/components/views/beacon/_BeaconStatus.scss b/res/css/components/views/beacon/_BeaconStatus.scss index 95c41749111..65e51a934ba 100644 --- a/res/css/components/views/beacon/_BeaconStatus.scss +++ b/res/css/components/views/beacon/_BeaconStatus.scss @@ -55,6 +55,11 @@ limitations under the License. white-space: nowrap; overflow: hidden; + + .mx_BeaconStatus_description_status { + text-overflow: ellipsis; + overflow: hidden; + } } .mx_BeaconStatus_expiryTime { diff --git a/src/components/views/beacon/BeaconStatus.tsx b/src/components/views/beacon/BeaconStatus.tsx index 935e22f4f0b..a4a1ca70560 100644 --- a/src/components/views/beacon/BeaconStatus.tsx +++ b/src/components/views/beacon/BeaconStatus.tsx @@ -63,11 +63,15 @@ const BeaconStatus: React.FC> = /> }
- { displayStatus === BeaconDisplayStatus.Loading && { _t('Loading live location...') } } - { displayStatus === BeaconDisplayStatus.Stopped && { _t('Live location ended') } } - - { displayStatus === BeaconDisplayStatus.Error && { _t('Live location error') } } - + { displayStatus === BeaconDisplayStatus.Loading && + { _t('Loading live location...') } + } + { displayStatus === BeaconDisplayStatus.Stopped && + { _t('Live location ended') } + } + { displayStatus === BeaconDisplayStatus.Error && + { _t('Live location error') } + } { displayStatus === BeaconDisplayStatus.Active && beacon && <> <> { label } diff --git a/test/components/views/beacon/__snapshots__/BeaconStatus-test.tsx.snap b/test/components/views/beacon/__snapshots__/BeaconStatus-test.tsx.snap index b3366336a17..b27f9ee191f 100644 --- a/test/components/views/beacon/__snapshots__/BeaconStatus-test.tsx.snap +++ b/test/components/views/beacon/__snapshots__/BeaconStatus-test.tsx.snap @@ -136,7 +136,9 @@ exports[` renders loading state 1`] = `
- + Loading live location...
@@ -165,7 +167,9 @@ exports[` renders stopped state 1`] = `
- + Live location ended
diff --git a/test/components/views/beacon/__snapshots__/OwnBeaconStatus-test.tsx.snap b/test/components/views/beacon/__snapshots__/OwnBeaconStatus-test.tsx.snap index d2751ba2d9d..fdaa80bdbea 100644 --- a/test/components/views/beacon/__snapshots__/OwnBeaconStatus-test.tsx.snap +++ b/test/components/views/beacon/__snapshots__/OwnBeaconStatus-test.tsx.snap @@ -15,7 +15,9 @@ exports[` renders without a beacon instance 1`] = `
- + Loading live location...