Skip to content

Commit 356fbac

Browse files
Fixed indentation
1 parent 84b9251 commit 356fbac

1 file changed

Lines changed: 11 additions & 19 deletions

File tree

kalertdialog.js

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -70,28 +70,20 @@
7070
box.className = `kalert-box kalert-${type}`;
7171

7272
box.innerHTML = `
73+
<div class="kalert-icon">
74+
<i class="fa-solid ${icon(type)}"></i>
75+
</div>
7376
74-
<div class="kalert-icon">
77+
${title ? `<div class="kalert-title">${title}</div>` : ""}
7578
76-
<i class="fa-solid ${icon(type)}"></i>
79+
<div class="kalert-message">${message}</div>
80+
${input ? `<input class="kalert-input" placeholder="${placeholder}"/>` : ""}
7781
78-
</div>
79-
80-
${title ? `<div class="kalert-title">${title}</div>` : ""}
81-
82-
<div class="kalert-message">${message}</div>
83-
84-
${input ? `<input class="kalert-input" placeholder="${placeholder}"/>` : ""}
85-
86-
<div class="kalert-buttons">
87-
88-
${showCancel ? `<button class="kalert-btn cancel">${cancelText}</button>` : ""}
89-
90-
<button class="kalert-btn confirm">${confirmText}</button>
91-
92-
</div>
93-
94-
`;
82+
<div class="kalert-buttons">
83+
${showCancel ? `<button class="kalert-btn cancel">${cancelText}</button>` : ""}
84+
<button class="kalert-btn confirm">${confirmText}</button>
85+
</div>
86+
`;
9587

9688
overlay.appendChild(box);
9789

0 commit comments

Comments
 (0)