coder / coder/coder-desktop-windows

SVG app icons don't load unless the URL ends in .svg

オープン
#91 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
C#
スター
26
フォーク
12
平均マージ
6時間 50分
マージ済み PR(30日)
1

説明

Since there's no `ImageSource` that can load both `.svg` and bitmap images, and instead there's a separate `SvgImageSource` and `BitmapImage`, we currently only attempt to load SVGs when the URL ends in `.svg`. We don't have much control over the actual downloading/caching operations of these sources.

One potential solution is to do a `HEAD` request first to get the `Content-Type` of the image, but it won't be easy to cache that result.

Another would be to download/cache images ourselves.

Relates to #92

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Start by tracing how URL-based images select between SvgImageSource and BitmapImage, focusing on the current `.svg` suffix check. Review the downloading and caching behavior, then compare the HEAD/Content-Type and application-managed caching options described in the issue. Done means SVG icons load when their URLs do not end in `.svg`, without breaking bitmap image loading.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
csharp
領域
desktop
issue の種類
バグ
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。