Skip to content

[BUG] Image block does not open file protocol paths #384

Description

@Jacob-Riddle

Bug Description

Providing a file:// URL results in a blank block.

Steps to Reproduce

In a runbook:

  1. click the plus button
  2. choose "Image"
  3. In the URL field enter a "file://" path # this path does not need to resolve to a file.

Expected Behavior

I expect the image block to either render the image or show a white question more on a blue background, indicating a broken link.

Actual Behavior

The file name is displayed in the upper left corner of the block. This is true regardless of the path being valid or not.

Environment

  • OS: OpenSUSE Tumbleweed
  • Atuin Desktop Version: 0.2.20
  • Atuin CLI Version: N/A
  • Shell: fish
  • Terminal: N/A

Screenshots/Logs

Image Image Image

foo.png:

Image

There are no logs

Additional Context

Workaround

The workaround is to have a separate document with the embedded images.

Activity

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions