mirror of
https://github.com/hex248/ob248.com.git
synced 2026-02-07 18:23:04 +00:00
images fill box
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 113 KiB After Width: | Height: | Size: 118 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 31 KiB |
@@ -8,19 +8,17 @@ interface Props {
|
||||
const { image, title, type = "simple" } = Astro.props;
|
||||
---
|
||||
|
||||
{type === "boxed" ? (
|
||||
{
|
||||
type === "boxed" ? (
|
||||
<div class="border demo-border">
|
||||
<span>{title}</span>
|
||||
<img
|
||||
src={image}
|
||||
alt={title}
|
||||
class="object-cover"
|
||||
/>
|
||||
<img src={image} alt={title} class="object-cover w-full" />
|
||||
</div>
|
||||
) : (
|
||||
) : (
|
||||
<img
|
||||
src={image}
|
||||
alt={title}
|
||||
class="w-full h-full object-cover demo-border"
|
||||
/>
|
||||
)}
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user