nextcloud / nextcloud/notes-android
Widget heading space increases
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 168
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 31
Description
This issue respects the following points:
- I have read the FAQ
- I have searched for existing issues
- The issue affects the Notes Android app, neither the Notes server app nor the Nextcloud Android app.
Describe the bug
Create a note with different headings
Personal.md
## Personal to-dos
- [ ] ...
- [ ] ...
- [ ] ...
- [ ] ...
### Re...
- su...
- ...
- ti...
- ...
### Do...
- in...
When this note is opened in the widget, the spacing between the heading and the text increases the higher the value of the heading is.
Expected behavior
The heading keeps the same spacing between different heading, just the size of the font changes according to the value.
Notes Android version
4.3.1
Notes server version
4.11.0
Nextcloud Android version
3.29.2
Nextcloud version
Hub 9 (30.0.2)
Device
Galaxy Note 9, Tab S6, Motorols XT1650, Anbernic Cube, Waydroid, etc.
Android Version
Android 12, but all devices with from 8+ show this behaviour
App Store
- Google Play Store
- F-Droid
- Huawei App Gallery
Stacktrace
This image shows the Note widget as placed on one of the screens (Microsoft Launcher):
As can be seen, spacing between ## and ### is increased overall. This wastes a lot of space, especially for longer notes.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Android widget code that renders Markdown headings, then reproduce the issue with the supplied heading examples on an Android 8+ device or emulator. Compare spacing between heading levels and verify that only font size changes while the spacing remains consistent for longer notes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100