Admin Services & products on phones: one card per item #19

Merged
reudy merged 1 commit from admin-mobile-items-list into main 2026-10-26 20:47:35 +01:00
Member

On a phone the Services & products table was cut off: Name and Type scrolled off the left, and long duration or bundle text wrapped into very tall rows.

Change (app-admin/src/routes/items/+page.svelte)

  • Below lg, where the sidebar becomes a drawer, each item is a card. It shows the picture, the name, Type and Status badges, the price (and stock for products), the lengths with get-ready time and places, or the bundle contents and how long it's valid. "Not on sale" and codes-waiting notes come next, with Edit on the right.
  • From lg up the table is unchanged. Its cells and the cards now render through the same snippets, so the two can't drift apart.

Tested

  • npm run check: 0 errors.
  • Rebuilt the test admin and took Playwright screenshots at 412 px (phone) and 1300 px (desktop). The phone shows cards and no horizontal scroll (scrollWidth 412). The desktop table looks the same as before.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Hy2vMnHJYP7QGsiH21zHxW

On a phone the Services & products table was cut off: Name and Type scrolled off the left, and long duration or bundle text wrapped into very tall rows. **Change** (`app-admin/src/routes/items/+page.svelte`) - Below `lg`, where the sidebar becomes a drawer, each item is a card. It shows the picture, the name, Type and Status badges, the price (and stock for products), the lengths with get-ready time and places, or the bundle contents and how long it's valid. "Not on sale" and codes-waiting notes come next, with **Edit** on the right. - From `lg` up the table is unchanged. Its cells and the cards now render through the same snippets, so the two can't drift apart. **Tested** - `npm run check`: 0 errors. - Rebuilt the test admin and took Playwright screenshots at 412 px (phone) and 1300 px (desktop). The phone shows cards and no horizontal scroll (`scrollWidth` 412). The desktop table looks the same as before. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Hy2vMnHJYP7QGsiH21zHxW
agent added 1 commit 2026-10-26 20:46:07 +01:00
The seven-column table didn't fit a phone: Name and Type scrolled off the
left and long bundle/duration text wrapped into very tall rows. Below lg
(where the sidebar becomes a drawer) each item is now a card: picture,
name, type and status badges, price/stock, then the lengths or bundle
contents and any warnings, with Edit on the right. The table stays from
lg up; its cells now share snippets with the cards.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hy2vMnHJYP7QGsiH21zHxW
reudy merged commit 56077f3246 into main 2026-10-26 20:47:35 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: reudy-net/domaino#19
No description provided.