Skip to content

Remove or Replace css break-all in small areas #31636

Closed
@SimonPistache

Description

@SimonPistache

Description

Hello!

On the sidebar of an issue, the Milestones (and Projects) section can be long enough to fit on multiples lines:
Capture d’écran 2024-07-15 à 16 16 06

However, the text is wrapped immediately, due to the word-break: break-all; property. I suggest to set it to a more gentle break like word-break: break-word; or just use the default behaviour:
Capture d’écran 2024-07-15 à 16 16 48

We could also rely on the text-overflow: ellipsis; CSS rule to truncate the text and leave it on 1 line, though it's a little more tricky to implement it with the flexbox.
Capture d’écran 2024-07-15 à 16 25 21

What do you think?

Gitea Version

1.22.0

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Docker latest from DockerHub

Database

SQLite

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic/uiChange the appearance of the Gitea UItype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions