element-hq / element-hq/element-web

Image metadata tooltip cuts off badly

Open
#22,245 0 comments 0 reactions 0 assignees View on GitHub
A-Timeline O-Occasional S-Tolerable T-Defect
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

- send image with long name
- send narrow image

### Outcome

#### What did you expect?
- when the image is wide enough, don't cut off the tooltip text prematurely
- when the image is narrow, still respect the image border/padding (see also #22246)

#### What happened instead?
- long name
![image](https://user-images.githubusercontent.com/2803622/168852449-de9e4f05-a50b-46b9-818c-916a254eed86.png)

- narrow #22246
![image](https://user-images.githubusercontent.com/2803622/168852599-eb9c6d63-7a2c-4dd0-b38a-09363fa45fe9.png)

### Operating system

arch

### Application version

Element Nightly version: 2022051701 Olm version: 3.2.8

### How did you install the app?

aur

### Homeserver

_No response_

### Will you send logs?

No

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.