diff options
| author | Peter Stone <thepeterstone@gmail.com> | 2026-01-23 10:29:02 -1000 |
|---|---|---|
| committer | Peter Stone <thepeterstone@gmail.com> | 2026-01-23 10:29:02 -1000 |
| commit | bc4149d7c9fe7a698cf07895b504ab8f2b26f649 (patch) | |
| tree | 0e82f17101ca3d925328c5d087a27285e0704a38 /web/templates/index.html | |
| parent | 539122f3c80fe1f27348f0ddfc7fd428a58384b8 (diff) | |
UI improvements: styling and layout fixes
- Prefill first store in shopping quick-add
- Tone down overdue/priority styling (red -> amber)
- Remove quick-add panel from tasks tab (use modal instead)
- Increase card opacity for better readability
- Swap task/event formatting (tasks get cards, events get border-l-4)
- Add grid layout for tasks (2-3 columns on wider screens)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'web/templates/index.html')
| -rw-r--r-- | web/templates/index.html | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/web/templates/index.html b/web/templates/index.html index 32c0857..050f0bf 100644 --- a/web/templates/index.html +++ b/web/templates/index.html @@ -144,7 +144,7 @@ id="shopping-list-select" class="w-full bg-black/40 border border-white/20 rounded-lg px-3 py-2 text-sm text-white mb-3" required> - <option value="">Select store...</option> + <option value="">Loading stores...</option> </select> <button type="submit" class="w-full bg-green-900/50 hover:bg-green-900/70 text-green-300 px-4 py-2 rounded-lg text-sm font-medium"> @@ -224,7 +224,10 @@ fetch('/partials/shopping-lists') .then(function(r) { return r.text(); }) .then(function(html) { - select.innerHTML = '<option value="">Select store...</option>' + html; + select.innerHTML = html; + if (select.options.length > 0) { + select.selectedIndex = 0; + } }) .catch(function(e) { console.error('Failed to load shopping lists:', e); }); } |
