Move scrollbar into Post Archive component instead of aside
This commit is contained in:
parent
9bf7827aa0
commit
54d5a77329
@ -39,6 +39,7 @@ export function PostArchive() {
|
|||||||
return (
|
return (
|
||||||
<div className="postList sheet-background">
|
<div className="postList sheet-background">
|
||||||
<h3>Posts</h3>
|
<h3>Posts</h3>
|
||||||
|
<div className="archive-container">
|
||||||
<ul className="post-archive">
|
<ul className="post-archive">
|
||||||
{archiveData.map((yearData) => (
|
{archiveData.map((yearData) => (
|
||||||
<li key={yearData.year}>
|
<li key={yearData.year}>
|
||||||
@ -72,6 +73,7 @@ export function PostArchive() {
|
|||||||
</li>
|
</li>
|
||||||
))}
|
))}
|
||||||
</ul>
|
</ul>
|
||||||
|
</div>
|
||||||
<script dangerouslySetInnerHTML={{ __html: minifyJS(postArchiveScript) }} />
|
<script dangerouslySetInnerHTML={{ __html: minifyJS(postArchiveScript) }} />
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|||||||
@ -167,7 +167,6 @@ aside {
|
|||||||
position: sticky;
|
position: sticky;
|
||||||
top: 0;
|
top: 0;
|
||||||
max-height: 100vh;
|
max-height: 100vh;
|
||||||
overflow-y: auto;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.pagination {
|
.pagination {
|
||||||
@ -612,6 +611,12 @@ h1 {
|
|||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.archive-container {
|
||||||
|
max-height: 300px;
|
||||||
|
overflow-y: auto;
|
||||||
|
padding-right: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
.post-archive {
|
.post-archive {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
@ -721,6 +726,27 @@ h1 {
|
|||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Custom scrollbar styling for archive container */
|
||||||
|
.archive-container::-webkit-scrollbar {
|
||||||
|
width: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.archive-container::-webkit-scrollbar-track {
|
||||||
|
background: var(--bg-secondary);
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.archive-container::-webkit-scrollbar-thumb {
|
||||||
|
background: var(--text-secondary);
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.archive-container::-webkit-scrollbar-thumb:hover {
|
||||||
|
background: var(--text-primary);
|
||||||
|
}
|
||||||
|
margin-left: auto;
|
||||||
|
}
|
||||||
|
|
||||||
/* Blog Post Styles */
|
/* Blog Post Styles */
|
||||||
.blog-post {
|
.blog-post {
|
||||||
max-width: 750px;
|
max-width: 750px;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user