Skip to content

Commit

Permalink
toast opacity and padding
Browse files Browse the repository at this point in the history
  • Loading branch information
n-at committed Sep 6, 2023
1 parent 1cac8e0 commit 890fe20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/ui-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@
*/
window.ShowToastMessage = function(cls, text, delay = 1000) {
const el = document.createElement('div');
el.classList.add('toast', 'align-items-center', 'border-0', `text-bg-${cls}`);
el.classList.add('toast', 'align-items-center', 'border-0', 'opacity-50', `text-bg-${cls}`);
el.role = 'alert';

const flexEl = document.createElement('div');
flexEl.classList.add('d-flex');
el.append(flexEl);

const bodyEl = document.createElement('div');
bodyEl.classList.add('toast-body');
bodyEl.classList.add('toast-body', 'p-2');
bodyEl.innerText = text;
flexEl.append(bodyEl);

Expand Down

0 comments on commit 890fe20

Please sign in to comment.