Skip to content

BUG in displaying long title #128

Closed
Closed

Description

@rchdliang

Describe the bug
When a title exceeds the character limit and should be truncated with "..." at the end, the truncation does not function correctly. Instead of cutting off the excess text, the remaining part of the title continues to display, overlapping and obscuring the body or description section below it. This results in a cluttered and unreadable layout, making it difficult for users to distinguish between the title and the content description.

To Reproduce
Steps to reproduce the behavior:

  1. Fetch articles which have long title exceeding character limit
  2. See bug

Expected behaviour
When a title exceeds the predefined character limit, it should be properly truncated with "..." appended at the end. The rest of the title beyond this point should not be displayed, ensuring that the body or description section remains clear and unobstructed. This will maintain a clean and organized interface, enhancing readability and user experience.

Screenshots

Image

Platform:

  • OS: Windows 11 25H2 26200.7840 professional
  • Version: v2.0.0-dev.15
  • Package type: .exe

Additional context
At first I thought the problem likely stems from incorrect handling of CJK (Chinese/Japanese/Korean) character width or line-breaking logic in the title rendering component. But for article in English the same problem exists, even setting the display language in English:

Image

Activity

  1. CrystalSplitter commented on Feb 25, 2026

    @CrystalSplitter
    Collaborator

    Ah, this explains the cluttering. Nice catch!

    I'm not sure what's happening here. I can probably only take a look this weekend, unfortunately.

  2. rchdliang commented on Feb 25, 2026

    @rchdliang
    Author

    I've managed to set up the environment, by add 3 lines into .npmrc from a comment in github issue:
    strict-ssl = false
    electron_mirror=https://cdn.npmmirror.com/binaries/electron/
    electron_builder_binaries_mirror=https://npmmirror.com/mirrors/electron-builder-binaries/
    Maybe you would like to add it to Building Instructions?
    And It can be fixed easily, just add a line in cards.css:
    overflow: hidden;
    I'll make a PR right now.

  3. CrystalSplitter commented on Feb 27, 2026

    @CrystalSplitter
    Collaborator

    Reopening until the PR is landed.

  4. CrystalSplitter commented on Mar 3, 2026

    @CrystalSplitter
    Collaborator

    Can you confirm this is now fixed?

  5. rchdliang commented on Mar 3, 2026

    @rchdliang
    Author

    Fixed ❤️

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions