element-hq / element-hq/element-android

Buggy Code Fence appeareance

Open
#2,549 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
3.7k
Forks
917
PR merge metrics
No merged PRs in 30d

Description

**Describtion**
In a message like this :

Some absoulully normal text
```
Some Code
```

The Code is just code,but the normal Text also gets this typewriter/Code font and has no automated line breaks, so if the message is long, you have to scroll sideways forever

**To Reproduce**
Steps to reproduce the behavior:
1. Enter any room
2. if there is none already, write a mesage with a long text above a code fence
3. See error/buggy appeareance

**Expected behavior**
It should display the Code as Code, and the non-code as standart text with normal font and auto-linebreaks.

**Screenshots**
This message:
![Screenshot_2020-12-17-09-29-52-643_im vector app](https://user-images.githubusercontent.com/43275254/102463099-f2c9c880-404a-11eb-944e-1890fe0152d2.jpg)
Results into this: (see the side-scroll-bar?)
![Screenshot_2020-12-17-09-30-44-033_im vector app](https://user-images.githubusercontent.com/43275254/102463107-f52c2280-404a-11eb-9331-ef2248b380f9.jpg)
![Screenshot_2020-12-17-09-30-59-083_im vector app](https://user-images.githubusercontent.com/43275254/102463105-f4938c00-404a-11eb-97d9-0c0cf61c28c4.jpg)

**Smartphone**
- Device: Xiaomi Redmi 4X
- OS: Android 7.1.2
But a Friend of mine could reproduce this on:
- Device: Samsung galaxy a3
- OS: Android 8.0.0

**Additional context**
- App version(mine is the same wth the mentioned friend): 1.0.11 [40100112] (G-b847)
- Store:
- Friend: F-Droid
- Me: idk anymore
- Homeserver: matrix.org (both of us)

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.