mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +08:00
Update prop to noPadding instead of className
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
---
|
---
|
||||||
export interface Props {
|
export interface Props {
|
||||||
className?: string;
|
noPadding?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
const { className } = Astro.props;
|
const { noPadding = false } = Astro.props;
|
||||||
---
|
---
|
||||||
|
|
||||||
<div class={`max-w-3xl mx-auto px-4 ${className}`}>
|
<div class={`max-w-3xl mx-auto ${noPadding ? "px-0" : "px-4"}`}>
|
||||||
<hr class="border-skin-line" />
|
<hr class="border-skin-line" />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user