style(webui): unify UI across all pages to solid modern system
tokens instead of hardcoded, v9 everywhere, dialog guarded, confirm->dialog, empty unified, health out of nav, swagger icons/topbar, gutters, th uppercase, content 1280 centered.
This commit is contained in:
+7
-2
@@ -395,10 +395,15 @@ function renderMessages(payload, append = false) {
|
||||
viewerState.oldestMessageId = null;
|
||||
viewerState.newestMessageId = null;
|
||||
const empty = document.createElement('div');
|
||||
empty.className = 'viewer-empty-state';
|
||||
empty.textContent = viewerState.search
|
||||
empty.className = 'empty-state viewer-empty-state';
|
||||
const title = document.createElement('h2');
|
||||
title.textContent = viewerState.search ? 'No messages found' : 'No saved messages';
|
||||
const text = document.createElement('p');
|
||||
text.className = 'muted';
|
||||
text.textContent = viewerState.search
|
||||
? `No messages found for "${viewerState.search}".`
|
||||
: 'No saved messages in this channel yet.';
|
||||
empty.append(title, text);
|
||||
root.appendChild(empty);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user