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
Collaborator

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.

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.

@daniele-verducci daniele-verducci self-assigned this Oct 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants