preview: hide email preview scrollbars
This commit is contained in:
1 parent
c93f2bf8b2
commit
5b06a795e4
1 file changed
+1
-1
+1
-1
@@ -379,7 +379,7 @@ function render() {
|
|||||||
const src = rendered;
|
const src = rendered;
|
||||||
const raw = src[state.theme]?.[state.template];
|
const raw = src[state.theme]?.[state.template];
|
||||||
let content = raw ? transform(raw, state.client) : '<p style=\"color:red;padding:20px\">Not found: '+state.theme+'/'+state.template+'</p>';
|
let content = raw ? transform(raw, state.client) : '<p style=\"color:red;padding:20px\">Not found: '+state.theme+'/'+state.template+'</p>';
|
||||||
content = content.replace('</head>', '<style>html{scrollbar-color:rgba(107,125,153,.25) transparent;scrollbar-width:thin;-ms-overflow-style:-ms-autohiding-scrollbar}html::-webkit-scrollbar{width:6px;height:6px}html::-webkit-scrollbar-track{background:transparent}html::-webkit-scrollbar-thumb{background-color:rgba(107,125,153,.25);border-radius:3px;border:1px solid rgba(255,255,255,.06)}html::-webkit-scrollbar-thumb:hover{background-color:rgba(107,125,153,.45)}html::-webkit-scrollbar-corner{background:transparent}</style></head>');
|
content = content.replace('</head>', '<style>html,body{scrollbar-width:none;-ms-overflow-style:none}html::-webkit-scrollbar,body::-webkit-scrollbar{display:none;width:0;height:0}</style></head>');
|
||||||
|
|
||||||
let done = false;
|
let done = false;
|
||||||
function finish() {
|
function finish() {
|
||||||
|
|||||||
Reference in new issue
Block a user