mirror of
https://github.com/KazooTTT/kazoottt-blog-v2.git
synced 2025-06-23 02:31:31 +08:00
fix: 避免横向滚动条
This commit is contained in:
@ -9,7 +9,7 @@ export interface Props {
|
|||||||
const { className = "", dataPagefindBody = true } = Astro.props;
|
const { className = "", dataPagefindBody = true } = Astro.props;
|
||||||
---
|
---
|
||||||
|
|
||||||
<article class={`${className}`} data-pagefind-body={dataPagefindBody}>
|
<article class="mx-auto max-w-3xl overflow-x-hidden px-4">
|
||||||
<slot />
|
<slot />
|
||||||
|
|
||||||
<div class="mt-8 border-t pt-4">
|
<div class="mt-8 border-t pt-4">
|
||||||
|
@ -121,3 +121,18 @@ const socialImageURL = new URL(ogImage ? ogImage : "/social-card.png", Astro.url
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<meta content={Astro.generator} name="generator" />
|
<meta content={Astro.generator} name="generator" />
|
||||||
|
|
||||||
|
<style is:global>
|
||||||
|
html,
|
||||||
|
body {
|
||||||
|
overflow-x: hidden;
|
||||||
|
width: 100%;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 确保所有图片不会溢出容器 */
|
||||||
|
img {
|
||||||
|
max-width: 100%;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
@ -15,7 +15,7 @@ const shareButtons = [
|
|||||||
];
|
];
|
||||||
---
|
---
|
||||||
|
|
||||||
<div class="share-buttons flex gap-2">
|
<div class="flex flex-wrap items-center gap-2">
|
||||||
{
|
{
|
||||||
shareButtons.map((button) => (
|
shareButtons.map((button) => (
|
||||||
<button
|
<button
|
||||||
|
Reference in New Issue
Block a user