Skip to content

Commit

Permalink
hide toast alert till activated
Browse files Browse the repository at this point in the history
  • Loading branch information
PizieDust committed Aug 30, 2024
1 parent b6c7854 commit ac07fab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions assets/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ function closeBanner() {

function postAlert(bg_color, content) {
const alertContainer = document.getElementById("alert-container");
alertContainer.classList.add("block")
const alert = document.createElement("div");
alert.className = `text-white transition ease-in-out delay-150 duration-300 ${bg_color}`;
alert.textContent = content;
Expand Down
2 changes: 1 addition & 1 deletion dashboard.ml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ let dashboard_layout ~icon ?(page_title = "Dashboard | Mollymawk")
a_class
[
"absolute top-1/4 rounded-md right-4 z-50 w-fit \
space-y-2 p-4 shadow border text-wrap";
space-y-2 p-4 shadow border text-wrap hidden";
];
]
[];
Expand Down

0 comments on commit ac07fab

Please sign in to comment.