feat: improve mobile responsiveness and dark mode UX

Mobile improvements:
- Fix content overflow issues on mobile devices
- Optimize code blocks and tables for small screens
- Add proper word-wrapping and container constraints

Dark mode enhancements:
- Replace icons with modern sun/moon designs
- Implement smooth icon switching with CSS transitions
- Simplify toggle logic for better performance

Resolves mobile layout issues and enhances theme switching experience
This commit is contained in:
Fechin committed 2025-06-21 10:07:49 +08:00
1 parent 0885f971d2
commit 43a3c7100f
8 files changed
+69 -17

No files matched your search

+17
View File
@@ -5,6 +5,8 @@ code {
pre {
line-height: 1.5;
word-wrap: break-word;
white-space: pre-wrap;
@apply overflow-hidden overflow-x-auto bg-white p-4;
}
@@ -34,6 +36,21 @@ pre > code.wrap {
@apply whitespace-pre-wrap break-words !important;
}
@media (width <= 768px) {
pre {
@apply text-sm;
max-width: 100%;
overflow-x: auto;
}
pre > code {
white-space: pre-wrap;
word-wrap: break-word;
overflow-wrap: break-word;
}
}
.mdLayout .line-highlight {
transform: translate3d(0, 2px, 0);
background: linear-gradient(to right, rgb(20 175 131 / 5%) 25%, transparent);