mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
fix: reasonably sized images on homepage
This commit is contained in:
1 parent
97b9137e9a
commit
a17a8888ff
1 file changed
+7
-4
@@ -43,9 +43,7 @@ const disabled = tool.branches?.every(
|
||||
style={{
|
||||
backgroundImage: `url(${imgur(tool.image, {
|
||||
format: 'jpeg',
|
||||
size: tool.significant
|
||||
? ImgurSize.HugeThumbnail
|
||||
: ImgurSize.LargeThumbnail,
|
||||
size: ImgurSize.SmallThumbnail,
|
||||
})})`,
|
||||
}}
|
||||
data-disabled={disabled}
|
||||
@@ -65,7 +63,12 @@ const disabled = tool.branches?.every(
|
||||
<Box
|
||||
flexGrow="1"
|
||||
style={{
|
||||
backgroundImage: `url(${imgur(tool.image, { format: 'jpeg' })})`,
|
||||
backgroundImage: `url(${imgur(tool.image, {
|
||||
format: 'jpeg',
|
||||
size: tool.significant
|
||||
? ImgurSize.HugeThumbnail
|
||||
: ImgurSize.LargeThumbnail,
|
||||
})})`,
|
||||
backgroundSize: 'cover',
|
||||
backgroundPosition: 'center',
|
||||
}}
|
||||
|
||||
Reference in new issue
Block a user