From b616a26df1fe27d0d3741b582aa8651c03452b40 Mon Sep 17 00:00:00 2001 From: Vito Sansevero Date: Sun, 8 Feb 2026 06:39:00 -0800 Subject: [PATCH] style: Phase 3 typography and spacing pass MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Reduce heading sizes: text-xl/2xl/3xl → text-sm font-semibold - Tighten modal padding: p-6 → p-4, px-6 py-4 → px-4 py-2 - Compact empty states: py-12 → py-6, py-8 → py-4 - Reduce space-y-6 → space-y-3 in metadata panels - Shrink stat card numbers: text-xl → text-lg - Shrink decorative emojis: text-2xl/3xl → text-lg - Keep lightbox nav buttons at text-xl for usability --- web/admin.html | 8 ++++---- web/js/admin.js | 34 +++++++++++++++++----------------- web/js/gallery.js | 32 ++++++++++++++++---------------- web/js/tags-page.js | 10 +++++----- web/metadata.html | 6 +++--- 5 files changed, 45 insertions(+), 45 deletions(-) diff --git a/web/admin.html b/web/admin.html index 84d5106..6f2a61a 100644 --- a/web/admin.html +++ b/web/admin.html @@ -40,7 +40,7 @@

Total Prompts

-

-

+

-

@@ -48,7 +48,7 @@

Categories

-

-

+

-

@@ -57,7 +57,7 @@

Unique Tags

-

-

+

-

@@ -65,7 +65,7 @@

Avg Rating

-

-

+

-

diff --git a/web/js/admin.js b/web/js/admin.js index b34d0b6..820dc9f 100644 --- a/web/js/admin.js +++ b/web/js/admin.js @@ -420,11 +420,11 @@ if (this.prompts.length === 0) { container.innerHTML = ` -
+
- 📭 + 📭
-

No prompts found

+

No prompts found

Try adjusting your search criteria or create some prompts in ComfyUI

`; @@ -491,7 +491,7 @@ return `
-
+
@@ -633,7 +633,7 @@ const isViewerOpen = viewerContainer && viewerContainer.style.display !== 'none'; const zIndex = isViewerOpen ? 'z-[50000]' : 'z-50'; - notification.className = `fixed top-4 right-4 px-6 py-4 rounded-pm-sm shadow-pm ${zIndex} transition-all duration-300 transform translate-x-full`; + notification.className = `fixed top-4 right-4 px-4 py-2 rounded-pm-sm shadow-pm text-sm ${zIndex} transition-all duration-300 transform translate-x-full`; const colors = { success: "bg-pm-success text-pm", @@ -1245,7 +1245,7 @@ runButton.disabled = true; runButton.innerHTML = '🔄 Running...'; resultsContainer.innerHTML = ` -
+

Running maintenance operations...

Operations: ${selectedOps.map(op => op.replace(/_/g, ' ')).join(', ')}

@@ -1379,7 +1379,7 @@ async runDiagnostics() { const content = document.getElementById("diagnosticsContent"); content.innerHTML = ` -
+

Running diagnostics...

@@ -1691,12 +1691,12 @@ const modal = document.createElement('div'); modal.className = 'fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50'; modal.innerHTML = ` -
-

📋 Copy Prompt Text

+
+

Copy Prompt Text

Please manually copy the text below:

-
@@ -1956,7 +1956,7 @@ const container = document.getElementById("logsContainer"); if (logs.length === 0) { - container.innerHTML = '
No logs found
'; + container.innerHTML = '
No logs found
'; return; } @@ -2445,7 +2445,7 @@ -

Error Loading Metadata

+

Error Loading Metadata

Could not extract ComfyUI metadata from this image

`; @@ -2982,7 +2982,7 @@ Seed: ${this.currentMetadata.seed || 'Unknown'}`; -

Generation data

+

Generation data

-
+
-

Loading Metadata...

+

Loading Metadata...

Extracting ComfyUI workflow data

@@ -3020,7 +3020,7 @@ Seed: ${this.currentMetadata.seed || 'Unknown'}`; -

Loading Metadata...

+

Loading Metadata...

Extracting ComfyUI workflow data

@@ -3034,7 +3034,7 @@ Seed: ${this.currentMetadata.seed || 'Unknown'}`; console.error('Failed to load metadata:', error); metadataContent.innerHTML = `
-

Failed to Load Metadata

+

Failed to Load Metadata

Could not extract ComfyUI workflow data

`; diff --git a/web/js/gallery.js b/web/js/gallery.js index 106e3b8..04f599a 100644 --- a/web/js/gallery.js +++ b/web/js/gallery.js @@ -221,7 +221,7 @@ @@ -388,7 +388,7 @@ -

Generation data

+

Generation data

-
+
@@ -526,7 +526,7 @@ -

Generation data

+

Generation data

-
+
@@ -628,7 +628,7 @@ -

Video Info

+

Video Info

-
+
@@ -1295,7 +1295,7 @@ Seed: ${this.currentMetadata.seed || 'Unknown'}`; showNotification(message, type = 'info') { const notification = document.createElement('div'); - notification.className = `fixed top-4 right-4 px-6 py-4 rounded-pm-md shadow-pm z-[20000] transition-all duration-300 transform translate-x-full`; + notification.className = `fixed top-4 right-4 px-4 py-2 rounded-pm-md shadow-pm text-sm z-[20000] transition-all duration-300 transform translate-x-full`; const colors = { success: "bg-pm-success text-pm", @@ -2138,7 +2138,7 @@ Seed: ${this.currentMetadata.seed || 'Unknown'}`; scanStatus.classList.add('hidden'); if (duplicates.length === 0) { - list.innerHTML = '
No duplicate images found! 🎉
'; + list.innerHTML = '
No duplicate images found! 🎉
'; content.classList.remove('hidden'); return; } @@ -2396,15 +2396,15 @@ Seed: ${this.currentMetadata.seed || 'Unknown'}`; modal.className = 'fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50'; modal.innerHTML = `
-
-

+
+

🚀 Generate Thumbnails?

Found ${missingCount} images without thumbnails (${imageCount} total images). Would you like to generate thumbnails for faster loading?

-

+

💡 Thumbnails speed up gallery loading significantly. You can change this setting in Gallery Settings.

@@ -2443,8 +2443,8 @@ Seed: ${this.currentMetadata.seed || 'Unknown'}`; // Transform the modal to show progress const modalContent = modal.querySelector('.bg-pm-surface'); modalContent.innerHTML = ` -
-

+
+

🚀 Generating Thumbnails

@@ -2453,7 +2453,7 @@ Seed: ${this.currentMetadata.seed || 'Unknown'}`;

-
+
Initializing... 0% @@ -3451,7 +3451,7 @@ Seed: ${this.currentMetadata.seed || 'Unknown'}`; }; const notification = document.createElement('div'); - notification.className = `fixed bottom-4 right-4 ${colors[type]} text-pm px-6 py-3 rounded-pm-md shadow-pm z-50 animate-fade-in`; + notification.className = `fixed bottom-4 right-4 ${colors[type]} text-pm px-4 py-2 rounded-pm-md shadow-pm text-sm z-50 animate-fade-in`; notification.textContent = message; document.body.appendChild(notification); diff --git a/web/js/tags-page.js b/web/js/tags-page.js index 2d0a0d5..fe91327 100644 --- a/web/js/tags-page.js +++ b/web/js/tags-page.js @@ -134,7 +134,7 @@ class TagsPageManager { if (container) { container.replaceChildren(); const errDiv = document.createElement('div'); - errDiv.className = 'text-center py-8 text-pm-error text-sm'; + errDiv.className = 'text-center py-4 text-pm-error text-sm'; errDiv.textContent = 'Failed to load tags. Try refreshing.'; container.appendChild(errDiv); } @@ -594,7 +594,7 @@ class TagsPageManager { if (grid) { grid.replaceChildren(); const spinner = document.createElement('div'); - spinner.className = 'col-span-full text-center py-8'; + spinner.className = 'col-span-full text-center py-4'; const spinEl = document.createElement('div'); spinEl.className = 'w-8 h-8 border-2 border-pm-success/30 border-t-pm-success rounded-full animate-spin mx-auto'; spinner.appendChild(spinEl); @@ -638,7 +638,7 @@ class TagsPageManager { if (grid) { grid.replaceChildren(); const errDiv = document.createElement('div'); - errDiv.className = 'col-span-full text-center py-8 text-pm-error'; + errDiv.className = 'col-span-full text-center py-4 text-pm-error'; errDiv.textContent = 'Failed to load prompts'; grid.appendChild(errDiv); } @@ -752,9 +752,9 @@ class TagsPageManager { if (this.prompts.length === 0) { grid.replaceChildren(); const emptyDiv = document.createElement('div'); - emptyDiv.className = 'col-span-full text-center py-12 text-pm-muted'; + emptyDiv.className = 'col-span-full text-center py-6 text-pm-muted'; const icon = document.createElement('span'); - icon.className = 'text-3xl block mb-2'; + icon.className = 'text-lg block mb-2'; icon.textContent = '\uD83D\uDCED'; emptyDiv.appendChild(icon); const msg = document.createElement('span'); diff --git a/web/metadata.html b/web/metadata.html index 7ec9087..6f2aa34 100644 --- a/web/metadata.html +++ b/web/metadata.html @@ -601,7 +601,7 @@ Seed: ${currentWorkflowData.seed || 'Unknown'}`; -

Drag & Drop PNG with ComfyUI Workflow

+

Drag & Drop PNG with ComfyUI Workflow

Or click to browse files

@@ -638,7 +638,7 @@ Seed: ${currentWorkflowData.seed || 'Unknown'}`; -

Generation data

+

Generation data