Skip to content

SVGs should always have the option to be displayed as image #14943

Closed
@delvh

Description

@delvh

Description

Gitea supports showing SVGs as image and not as text, but apparently that only applies when viewing the file in the file view (example).
When opening a new PR, a SVG will still only be displayed as text in the preview and later on in the existing PR.

Expected behavior

Wherever in a repo a SVG image gets encountered, it should be displayed initially as image, not as text, but with the ability to convert it to raw text.

Screenshots

Appearance in file view:
image

Appearance in PR:
image

Appearance in PR preview:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/duplicateThe issue has already been reported.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions