nextcloud / nextcloud/notes-android

Widget heading space increases

Open
#2,513 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage bug Widget :: Single Note
Dominant language
Java
Stars
1.1k
Forks
168
Avg merge
1d 17h
Merged PRs (30d)
31

Description

This issue respects the following points:
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):
Image
As can be seen, spacing between ## and ### is increased overall. This wastes a lot of space, especially for longer notes.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.