1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-26 11:37:20 +00:00

Tweaks for RSOD adjustments 7468ad7

Better to centre the button
This commit is contained in:
Jermolene 2018-05-10 15:29:31 +01:00
parent 4e12c93b90
commit 98bafd0b69
2 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@ Error message and password prompt
width: 50%; width: 50%;
margin-left: 25%; margin-left: 25%;
margin-top: 4em; margin-top: 4em;
padding: 0 2em 2em 2em; padding: 0 2em 1em 2em;
} }
.tc-error-form h1 { .tc-error-form h1 {
@ -30,14 +30,13 @@ Error message and password prompt
.tc-error-prompt { .tc-error-prompt {
text-align: center; text-align: center;
color: #000; color: #000;
margin-bottom: 1em;
} }
.tc-error-message { .tc-error-message {
overflow: auto; overflow: auto;
max-height: 40em; max-height: 40em;
padding-right: 1em; padding-right: 1em;
margin-bottom: 1em; margin: 1em 0;
white-space: pre-line; white-space: pre-line;
} }

View File

@ -136,7 +136,7 @@ $tw.utils.error = function(err) {
heading = dm("h1",{text: errHeading}), heading = dm("h1",{text: errHeading}),
prompt = dm("div",{text: promptMsg, "class": "tc-error-prompt"}), prompt = dm("div",{text: promptMsg, "class": "tc-error-prompt"}),
message = dm("div",{text: err, "class":"tc-error-message"}), message = dm("div",{text: err, "class":"tc-error-message"}),
button = dm("button",{text: ( $tw.language == undefined ? "close" : $tw.language.getString("Buttons/Close/Caption") )}), button = dm("div",{children: [dm("button",{text: ( $tw.language == undefined ? "close" : $tw.language.getString("Buttons/Close/Caption") )})], "class": "tc-error-prompt"}),
form = dm("form",{children: [heading,prompt,message,button], "class": "tc-error-form"}); form = dm("form",{children: [heading,prompt,message,button], "class": "tc-error-form"});
document.body.insertBefore(form,document.body.firstChild); document.body.insertBefore(form,document.body.firstChild);
form.addEventListener("submit",function(event) { form.addEventListener("submit",function(event) {
@ -2208,6 +2208,7 @@ $tw.boot.boot = function(callback) {
// Initialise password prompter // Initialise password prompter
if($tw.browser && !$tw.node) { if($tw.browser && !$tw.node) {
$tw.passwordPrompt = new $tw.utils.PasswordPrompt(); $tw.passwordPrompt = new $tw.utils.PasswordPrompt();
error
} }
// Preload any encrypted tiddlers // Preload any encrypted tiddlers
$tw.boot.decryptEncryptedTiddlers(function() { $tw.boot.decryptEncryptedTiddlers(function() {