mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
Fix entry page error
This commit is contained in:
parent
d9aeaee35f
commit
9cd5f20a48
2 changed files with 4 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
class app.views.EntryPage extends app.View
|
||||
@className: '_page'
|
||||
@errorClass: '_page-error'
|
||||
|
||||
@events:
|
||||
click: 'onClick'
|
||||
|
@ -97,6 +98,7 @@ class app.views.EntryPage extends app.View
|
|||
onError: =>
|
||||
@xhr = null
|
||||
@render @tmpl('pageLoadError')
|
||||
@addClass @constructor.errorClass
|
||||
app.appCache?.update()
|
||||
return
|
||||
|
||||
|
|
|
@ -5,6 +5,8 @@
|
|||
._page {
|
||||
position: relative;
|
||||
|
||||
._page-error { position: static; }
|
||||
|
||||
> h1 { @extend ._lined-heading; }
|
||||
> h1:first-child { margin-top: 0; }
|
||||
|
||||
|
|
Loading…
Reference in a new issue