[IMP] tools: improve error message display

This commit is contained in:
Géry Debongnie
2019-06-28 14:54:24 +02:00
parent 60a6cca960
commit 1c8e1af86d
4 changed files with 14 additions and 15 deletions
+1 -3
View File
@@ -1,9 +1,7 @@
html, html,
body { body {
height: 100%; height: 100%;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial,
sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
} }
body { body {
+1 -3
View File
@@ -1,9 +1,7 @@
html, html,
body { body {
height: 100%; height: 100%;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial,
sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
} }
.title, .title,
+10 -8
View File
@@ -2,9 +2,7 @@
html, html,
body { body {
height: 100%; height: 100%;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial,
sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
} }
body { body {
@@ -181,10 +179,14 @@ body {
.right-pane .error { .right-pane .error {
height: 100%; height: 100%;
padding-top: 40%; width: 90%;
font-size: 30px; padding-top: 30%;
font-size: 18px;
color: darkred; color: darkred;
text-align: center; margin-left: 5%;
padding-left: 30px; }
padding-right: 30px;
.right-pane .error pre {
overflow: auto;
width: 100%;
} }
+2 -1
View File
@@ -48,7 +48,8 @@
<div class="note">Note: these examples require a recent browser to work without a transpilation step. </div> <div class="note">Note: these examples require a recent browser to work without a transpilation step. </div>
</div> </div>
<div t-if="state.error" class="error"> <div t-if="state.error" class="error">
<t t-esc="state.error"/> <h3>Error</h3>
<pre t-esc="state.error"/>
</div> </div>
<div class="content" t-ref="content"/> <div class="content" t-ref="content"/>
</div> </div>