diff --git a/index.html b/index.html index 9dd6b3d..d05c413 100644 --- a/index.html +++ b/index.html @@ -179,6 +179,8 @@ .text-gray-900 { color: rgb(var(--text-primary-rgb)) !important; } .text-gray-800 { color: rgba(var(--text-primary-rgb), 0.94) !important; } .text-gray-700 { color: rgba(var(--text-primary-rgb), 0.82) !important; } + .text-gray-100 { color: rgb(var(--text-primary-rgb)) !important; } + .text-gray-50 { color: rgb(var(--text-primary-rgb)) !important; } .text-gray-600 { color: rgba(var(--text-secondary-rgb), 0.96) !important; } .text-gray-500 { color: rgba(var(--text-secondary-rgb), 0.78) !important; } .text-gray-400 { color: rgba(var(--text-tertiary-rgb), 0.94) !important; } diff --git a/js/views/Pantry.js b/js/views/Pantry.js index b44e79f..2a9a182 100644 --- a/js/views/Pantry.js +++ b/js/views/Pantry.js @@ -551,26 +551,28 @@ function classifyIngredients(searchQuery) { /* ══════════════════════ TILE RENDERING ══════════════════════ */ -function tileIconHtml(item) { +function tileIconHtml(item, size = 'sm') { + const wrap = size === 'lg' ? 'w-9 h-9' : 'w-6 h-6'; + const iconSize = size === 'lg' ? 'text-[18px]' : 'text-[12px]'; if (item.image) { - return `
`; + return `
`; } - return `
`; + return `
`; } function shortfallTileHtml(item) { const clamp = item.name.length > 25 ? ' min-w-0' : ''; return ` - `; } @@ -578,16 +580,16 @@ function shortfallTileHtml(item) { function sufficientTileHtml(item) { const clamp = item.name.length > 25 ? ' min-w-0' : ''; return ` - `; }