Skip to content
This repository was archived by the owner on May 30, 2019. It is now read-only.

Commit b9ad4ff

Browse files
committed
browser: layout for errors
Set margin-bottom and font size for global error, but not others.
1 parent c42e9a9 commit b9ad4ff

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

browser/src/app/states/_layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div ng-if="globalError.length" marked="globalError" class="has-error"></div>
1+
<div ng-if="globalError.length" marked="globalError" class="ss-global-error has-error"></div>
22
<div>
33

44
<div ng-if="loading" class="spinner">

browser/src/app/styles/style.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,15 @@
4747
.has-error {
4848
border: 1px solid #f00;
4949
padding: 5px;
50+
}
51+
52+
.ss-global-error {
5053
font-size: 8pt;
54+
margin-bottom: -($navbar-height);
5155

5256
pre {
5357
font-size: 8pt;
5458
}
55-
56-
margin-bottom: -($navbar-height);
5759
}
5860

5961
p.has-error {

0 commit comments

Comments
 (0)