eink: disable all shadows in E-Ink mode (#2354)

This commit is contained in:
Huang Xin
2025-10-29 13:46:17 +08:00
committed by GitHub
parent 19b79c5b35
commit c7ba44a91e
4 changed files with 9 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@readest/readest-app",
"version": "0.9.90",
"version": "0.9.91",
"private": true,
"scripts": {
"dev": "dotenv -e .env.tauri -- next dev --turbopack",
@@ -7,6 +7,7 @@ export const useEinkMode = () => {
} else {
document.body.classList.remove('no-transitions');
}
document.documentElement.setAttribute('data-eink', isEink.toString());
}, []);
return { applyEinkMode };
+5 -1
View File
@@ -412,6 +412,10 @@ foliate-view {
animation: spin-counterclockwise 1s linear;
}
[data-eink="true"] [class*="shadow-"] {
box-shadow: none !important;
}
.no-transitions * {
transition: none !important;
transition: none !important;
}
+2
View File
@@ -391,6 +391,8 @@ export const getFootnoteStyles = () => `
}
a:any-link {
cursor: default;
pointer-events: none;
text-decoration: none;
padding: unset;
margin: unset;