For some values of an img src attribute image preview is displaying incorrectly. See screenshots.
Steps to recreate
Open a web application project in VS.
Open some Razor view.
Hover img src attribute.
Current behavior
For relative URLs the image is shown as expected.
For HTTP URLs "no image" placeholder is shown with an error below (the URL works in a browser).
For Razor expressions "no image" placeholder is shown, but it covers the whole window and makes editing almost impossible.
Expected behavior
For valid HTTP URLs the image should load correctly.
For invalid HTTP URLs an error should be shown with correct layout.
For non-URLs nothing should pop up.
It seems that the easiest way to fix that is to remove the "no image" placeholder. It does not add much value over a simple text tool tip.
Installed product versions
Description
For some values of an
img src
attribute image preview is displaying incorrectly. See screenshots.Steps to recreate
img src
attribute.Current behavior
Expected behavior
For valid HTTP URLs the image should load correctly. For invalid HTTP URLs an error should be shown with correct layout. For non-URLs nothing should pop up.
It seems that the easiest way to fix that is to remove the "no image" placeholder. It does not add much value over a simple text tool tip.