style: 修复样式异常

This commit is contained in:
2026-08-15 12:40:12 +08:00
parent f7929be18d
commit 990d4b0728
5 changed files with 9 additions and 1 deletions

View File

@@ -57,6 +57,7 @@ const { data: tags } =
<style> <style>
.sidebar { .sidebar {
flex-shrink: 0;
width: 300px; width: 300px;
height: 100%; height: 100%;
display: flex; display: flex;

View File

@@ -25,6 +25,7 @@ const {posts, page, totalPage} = Astro.props;
<style> <style>
.container { .container {
flex: 1;
width: 100%; width: 100%;
display: flex; display: flex;
gap: 28px; gap: 28px;
@@ -34,6 +35,7 @@ const {posts, page, totalPage} = Astro.props;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 32px; gap: 32px;
flex: 1;
} }
@media (max-width: 860px) { @media (max-width: 860px) {

View File

@@ -51,6 +51,7 @@ const {data} = await http.get<ApiResponse<Archive>>("posts/archives");
} }
.archive { .archive {
width: 100%;
max-width: 860px; max-width: 860px;
margin: 0 auto; margin: 0 auto;
} }

View File

@@ -123,6 +123,7 @@ const buildSearchUrl = (type: 'category' | 'tag', code: string) => {
gap: 14px; gap: 14px;
margin: 0 auto; margin: 0 auto;
max-width: 860px; max-width: 860px;
width: 100%;
} }
.search-header { .search-header {

View File

@@ -52,6 +52,9 @@ body {
max-width: var(--layout-width); max-width: var(--layout-width);
margin: 0 auto; margin: 0 auto;
padding: 32px; padding: 32px;
flex: 1;
display: flex;
flex-direction: column;
} }
@media (max-width: 768px) { @media (max-width: 768px) {