Simplify gallery example a bit
This commit is contained in:
parent
17395e8320
commit
ec4d007a4c
3 changed files with 119 additions and 108 deletions
|
|
@ -69,7 +69,7 @@ impl Image {
|
|||
.split("/")
|
||||
.map(|part| {
|
||||
if part.starts_with("width=") {
|
||||
format!("width={width}")
|
||||
format!("width={}", width * 2) // High DPI
|
||||
} else {
|
||||
part.to_owned()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue