element-hq / element-hq/element-web

Voice message duration indicator doesn't fit in UI when using a custom font

Open
#18,590 0 comments 1 reaction 0 assignees View on GitHub
A-Voice-Messages O-Uncommon S-Minor T-Defect
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

1. Configure a custom font such as `monospace` in element desktop (without selecting a different font size etc..).
2. Send or receive a voice message
3. Look at the rendered voice message item

### What happened?

![image](https://user-images.githubusercontent.com/638836/129715296-0ba98e93-f0d0-4162-980d-133e04b34ed3.png)

The duration indicator did flow over into the next line. That seems to be due to the width of the item being relative to the text size on the `` node and not relative to the size of the actual font used(?).

### What did you expect?

The size of the field should be relative to the size of the font in the field (up to a reasonable limit, e.g. the full width).

### Operating system

MacOS

### Application version

Element desktop 1.8.1

### How did you install the app?

https://packages.riot.im/desktop/install/macos/Element.dmg

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.