mirror of
https://codeberg.org/demostf/frontend.git
synced 2026-06-03 18:24:12 +02:00
svg class icons
This commit is contained in:
parent
a3ecbb2222
commit
f7f163bc49
22 changed files with 79 additions and 169 deletions
|
|
@ -13,7 +13,7 @@ pub fn bundle_raw(input: &str) -> Vec<u8> {
|
|||
|
||||
fn guess_embed(path: &str) -> (&'static str, bool) {
|
||||
match path.split('.').last().unwrap() {
|
||||
"svg" => ("image/svg+xml", false),
|
||||
"svg" => ("image/svg+xml", true),
|
||||
"png" => ("image/png", true),
|
||||
ext => panic!("no mimetype known for {ext}"),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue