1
0
Fork 0

Improve zone error message

main
Ambrose Chua 2020-11-10 19:27:12 +08:00
parent b81f58c5e6
commit 74dd1ebfd1
2 changed files with 13 additions and 1 deletions

View File

@ -180,6 +180,18 @@ d-zone:not(:last-of-type):after {
}
}
/* Error container */
d-zoneerror {
flex: 1 1 0;
display: block;
margin-top: 2rem;
margin-bottom: 2rem;
text-align: center;
color: rgb(255, 127, 127);
color: color(display-p3 1.0 0.5 0.5);
}
/* Left container */
d-zoneinfo {
flex: 1 1 0;

View File

@ -19,7 +19,7 @@
{{with resolveZone $app .}}
{{if .Error}}
<d-zoneerror>
Unable to load zone "{{$zoneName}}". The URL path might not be valid
Unable to load zone "{{$zoneName}}". The zone could be invalid
</d-zoneerror>
{{else}}
{{$zt := $t.In .Location}}