feat: improved header styling
This commit is contained in:
@@ -49,8 +49,8 @@ async function handleAddLink(e) {
|
||||
addButton.disabled = true;
|
||||
const btnText = addButton.querySelector('.btn-text');
|
||||
const btnLoader = addButton.querySelector('.btn-loader');
|
||||
btnText.style.display = 'none';
|
||||
btnLoader.style.display = 'inline';
|
||||
if (btnText) btnText.style.display = 'none';
|
||||
if (btnLoader) btnLoader.style.display = 'flex';
|
||||
|
||||
try {
|
||||
const response = await fetch(API_BASE, {
|
||||
@@ -80,8 +80,8 @@ async function handleAddLink(e) {
|
||||
} finally {
|
||||
// Re-enable form
|
||||
addButton.disabled = false;
|
||||
btnText.style.display = 'inline';
|
||||
btnLoader.style.display = 'none';
|
||||
if (btnText) btnText.style.display = 'inline';
|
||||
if (btnLoader) btnLoader.style.display = 'none';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user