Skip to content

[Feature Request] SVG Diff #14329

Closed
@kdumontnu

Description

@kdumontnu

Now that we support svg rendering we should consider adding support for rendered svg diff.

This shows the basic functionality in GitHub.

GH Demo

See live GitHub example (note: GitHub actually seems to have a bug in swipe mode when the SVG size has changed it shows both on tope of one-another)

Personally, I find the the onion skin mode to be the least helpful, but the other two modes are quite useful.

Request:

  • Like GitHub, we should render the svg diff in PRs and commit diff view
  • Like GitHub, we should have a toggle button to switch between code and render mode
  • Unlike GitHub, the toggle button should be "sticky" between sessions/page-views, so that a user navigating between PR tabs doesn't have to repeatedly toggle the button.
  • Unlike GitHub, the default toggle state should be configurable by either repository, user, or gitea instance

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/featureCompletely new functionality. Can only be merged if feature freeze is not active.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions