Skip to content

Improve chord memory card text prompt typography#271

Open
rednebmas wants to merge 5 commits intomainfrom
text-card-prompt-typography
Open

Improve chord memory card text prompt typography#271
rednebmas wants to merge 5 commits intomainfrom
text-card-prompt-typography

Conversation

@rednebmas
Copy link
Owner

Summary

  • Replace prose prose-sm with custom react-markdown component overrides in TextCardPrompt
  • # Titleheading-lg (large, bold) for song/piece names
  • ## Labelcaption (small, muted) for section labels
  • Plain text → heading-lg so single-line prompts like Cm7 render at proper flashcard size

Test plan

  • yarn test:codex — all 94 tests pass
  • Screenshot tests — check CI results (rendering changes expected)

🤖 Generated with Claude Code

Replace prose prose-sm with custom react-markdown component overrides
that map to the app's existing typography system (heading-lg, caption),
giving proper visual hierarchy for flashcard-sized content.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Contributor

github-actions bot commented Mar 3, 2026

🔴 Test Failures Detected

View the full Playwright report here.

The three-dot menu was absolutely positioned over the card content,
creating awkward spacing. Move it into a proper flex row so the
content sits cleanly below it.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Contributor

github-actions bot commented Mar 3, 2026

🔴 Test Failures Detected

View the full Playwright report here.

heading-lg (text-3xl) made plain text prompts wider than the card,
pushing past the three-dot menu. Use heading-md (text-2xl) for plain
text while keeping heading-lg for explicit h1 titles.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Contributor

github-actions bot commented Mar 3, 2026

🔴 Test Failures Detected

View the full Playwright report here.

Replace absolute positioning with a flex row so the three-dot menu
no longer overlaps card content (especially larger Text Prompt markdown).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Contributor

github-actions bot commented Mar 3, 2026

🔴 Test Failures Detected

View the full Playwright report here.

The -mb-3 only reclaimed 12px of the 36px menu row, pushing card
content down. Use -mb-9 to fully collapse the row so cards match
their original height. Add z-10 so the menu stays clickable above
overlapping content. Restore justify-between on the container.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Contributor

github-actions bot commented Mar 4, 2026

🔴 Test Failures Detected

Below is a gallery of each test’s actual vs diff. Click to view full-size or run locally:

View the full Playwright report here.


custom-deck-chord-memory-to-study-question

Screenshot
Actual actual
Expected expected
Diff diff

custom-deck-notation-cross-clef-tie-study-1

Screenshot
Actual actual
Expected expected
Diff diff

custom-deck-notation-to-study

Screenshot
Actual actual
Expected expected
Diff diff

custom-text-prompt-cross-clef-study-1

Screenshot
Actual actual
Expected expected
Diff diff

study-screen-end-to-end

Screenshot
Actual actual
Expected expected
Diff diff

To update all screenshot snapshots, run the Update Screenshot Test PNGs workflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant