feat: 调整布局

This commit is contained in:
2026-07-20 23:19:16 +08:00
parent 1ddaabe64b
commit 0b18d55712
3 changed files with 5 additions and 8 deletions

View File

@@ -82,6 +82,7 @@ const {categories} = Astro.props
@media (max-width: 860px) { @media (max-width: 860px) {
.sidebar{ .sidebar{
width: 100%; width: 100%;
display: none;
} }
} }
</style> </style>

View File

@@ -26,10 +26,4 @@ const {posts, page, totalPage, categories} = Astro.props
gap: 28px; gap: 28px;
} }
@media (max-width: 860px) {
.container{
flex-direction: column-reverse;
gap: 16px;
}
}
</style> </style>

View File

@@ -220,6 +220,10 @@ posts.map((post) => {
@media (max-width: 860px) { @media (max-width: 860px) {
.post-list{
gap: 16px;
}
.post-card { .post-card {
padding: 16px; padding: 16px;
} }
@@ -240,6 +244,4 @@ posts.map((post) => {
} }
} }
</style> </style>