style: 修复样式异常
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user