fix: style and type issues with feature enhancements

- Fix presetTheme type assertion issue
- Fix content height dvh problem on large screens
- Fix tables and KaTex math formulas overflowing containers on mobile
- Update 404 page
- Update README documentation
- Increase link underline offset
- Add line number display to code blocks
- Improve scrollbar styles for TOC and code blocks
This commit is contained in:
radishzzz 2025-04-09 18:46:27 +01:00
parent b492e5c262
commit 05b902bc61
9 changed files with 264 additions and 247 deletions

View file

@ -54,7 +54,6 @@ function setupScrollbar() {
scrollbars: {
theme: 'scrollbar-widget',
autoHide: 'never',
autoHideDelay: 500,
},
overflow: {
x: 'hidden',
@ -89,9 +88,9 @@ document.addEventListener('astro:after-swap', setupScrollbar)
}
.scrollbar-widget {
--os-size: 0.6rem;
--os-padding-perpendicular: 0.1rem;
--os-padding-axis: 0.2rem;
--os-size: 0.4rem;
--os-padding-perpendicular: 0;
--os-padding-axis: 0.05rem;
--os-handle-border-radius: 99rem;
--os-handle-perpendicular-size: 75%;
--os-handle-perpendicular-size-hover: 100%;