Skip to content

CSS in /commit/[commit] is broken with commit description containing long words #7826

Closed

Description

@tbvns

Gogs version

0.13.0

Git version

  • Server: git version 2.40.1
  • Client: git version 2.39.0.windows.1

Operating system

Windows (any web browser tho)

Database

mariadb Ver 15.1 Distrib 10.11.8-MariaDB, for debian-linux-gnu (x86_64) using EditLine wrapper

Describe the bug

The css in /commit/[commit] is broken with commit description containing long words:
image
(I had some issue with module-info.java)

To reproduce

Commit something with a very long word

Expected behavior

The string should be cut or placed on a new line before exiting the box.

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added
    💊 bug
    on Oct 14, 2024
  2. unknwon commented on Nov 16, 2026

    @unknwon
    Member

    The commit message body wrapped only at spaces, so a long word such as a file path ran past the page. #8606 wraps it in the new commit page.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    💊 bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions