Skip to content

Fix Alert UI #11

Merged
merged 2 commits into from Apr 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/stream.js
Expand Up @@ -57,7 +57,7 @@ class Stream {
if (recognizedFaces.length > 0) {
// create safe event
this.currentEvent.type = 'safe'
this.currentEvent.message = ''
this.currentEvent.message = 'Safe'
} else {
// threat detected
if (this.currentEvent.type !== 'safe') {
Expand Down
1 change: 1 addition & 0 deletions sass/event.sass
Expand Up @@ -23,6 +23,7 @@
height: $event_hight

.event_preview
margin: 20 0 10 0
color: $text-dark

.motion
Expand Down
3 changes: 2 additions & 1 deletion sass/includes/text.sass
Expand Up @@ -16,10 +16,11 @@ h1
line-height: 4.5rem
margin: 0 0 0 0
margin-top: 2rem
margin-bottom: 2rem
h2
font-size: 1.8rem
margin: 0 0 0 0
margin-top: 2rem
margin-top: 1.5rem
h3
font-size: 1.3rem
margin: 0 0 0 0
Expand Down
1 change: 1 addition & 0 deletions views/camera.pug
Expand Up @@ -12,6 +12,7 @@ html(lang='en')
h1=camera.name
.stream_container(id=camera.id)
img.stream(src='')
h2 Alerts
.events
include includes/createEvent.pug
script.
Expand Down