Skip to content

Commit

Permalink
fix toast notifications for when web notifications are disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Dec 6, 2018
1 parent adbd3b0 commit 9b89af1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/frontend/src/services/toast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export default class Toast extends Service {
...options,
message: message || 'status',
type: status,
cssClasses: `notification ${status} p-xs has-shadow height-tall`,
});
}
}
9 changes: 9 additions & 0 deletions packages/frontend/src/ui/styles/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -215,3 +215,12 @@ textarea {
overflow-wrap: break-word;
}
}


// matches the toast notification
div.notification.has-shadow.p-xs.height-tall {
div:first-child {
display: none;
}

}

0 comments on commit 9b89af1

Please sign in to comment.