Theme rework: polish dark mode and previews
Refine mobile nav layout, improve dark theme UI polish, and update README previews with light/dark variants.
This commit is contained in:
@@ -41,9 +41,17 @@
|
||||
return;
|
||||
}
|
||||
|
||||
const nameEl = document.getElementById('user-name');
|
||||
if (nameEl && !nameEl.textContent) {
|
||||
nameEl.textContent = decoded.name || '';
|
||||
const name = decoded.name || '';
|
||||
const nameTargets = document.querySelectorAll('[data-user-name]');
|
||||
if (nameTargets.length) {
|
||||
nameTargets.forEach((el) => {
|
||||
if (el && !el.textContent) el.textContent = name;
|
||||
});
|
||||
} else {
|
||||
const nameEl = document.getElementById('user-name');
|
||||
if (nameEl && !nameEl.textContent) {
|
||||
nameEl.textContent = name;
|
||||
}
|
||||
}
|
||||
|
||||
const adminLink = document.getElementById('admin-control-link');
|
||||
|
||||
Reference in New Issue
Block a user