Skip to content

fix(widget): prevent note title from wrapping in note list widget entries - #3384

Open
mark99i wants to merge 1 commit into
nextcloud:mainfrom
mark99i:fix-widget-entry-text-styles
Open

mark99i wants to merge 1 commit into
nextcloud:mainfrom
mark99i:fix-widget-entry-text-styles

Conversation

@mark99i

@mark99i mark99i commented Oct 9, 2026

Copy link
Copy Markdown

A single line constraint and vertical gravity were lost for the note title TextView in 285e9b9, so long titles wrapped to a second line and overflowed the row bounds, appearing as ghost text underneath the first entry.

AI-assistant: Cline Extension 1.x (GLM-5.3)

🖼️ Screenshots

🏚️ Before 🏡 After
B A

🏁 Checklist

  • ⛑️ Tests (unit and/or integration) are included or not needed
  • 🔙 Backport requests are created or not needed: /backport to stable-xx.x
  • 📅 Milestone is set
  • 🌸 PR title is meaningful (if it should be in the changelog: is it meaningful to users?)

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

…ries

A single line constraint and vertical gravity were lost for the note
title TextView in 285e9b9, so long titles wrapped to a second line and
overflowed the row bounds, appearing as ghost text underneath the first
entry.

AI-assistant: Cline Extension 1.x (GLM-5.3)
Signed-off-by: Mark <mark-smirnow@yandex.ru>
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

android:layout_weight="1"
android:layout_gravity="center_vertical"
android:gravity="center_vertical"
android:maxLines="1"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @mark99i thanks for your PR!
This does improve the situation, but in case of long titles, the title is truncated and this is not visible to the user.
We could consider adding an ellipsize to make it clear:

Suggested change
android:maxLines="1"
android:maxLines="1"
android:ellipsize="middle"

I choose "middle" as it allows discerning between names like "Note 1", "Note 2"... and/or conflicted copies.

Before:
Image

With your change:
Image

After adding ellipsize:
Image

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally, I think that the ellipsis takes up useful space and doesn’t look very good. But I’ll accept any decision. I was just curious about why the letters are leaking through.

@daniele-verducci daniele-verducci self-assigned this Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants