8000 fix(drip): the card's title and detail share one text direction by jrnxf · Pull Request #116 · jrnxf/drip · GitHub
[go: up one dir, main page]

Skip to content

fix(drip): the card's title and detail share one text direction - #116

Merged
jrnxf merged 5 commits into
mainfrom
launch/w-text-direction
Nov 11, 2026
Merged

jrnxf merged 5 commits into
mainfrom
launch/w-text-direction

Conversation

@jrnxf
@jrnxf jrnxf commented Nov 11, 2026 •
Copy link
Copy Markdown
Owner

A card now reads in one direction, the title's. A right-to-left title over a left-to-right detail, or the reverse, aligns both lines to the same side.

Reviewer: read the small diff and look at the two images below. About 5 min.

Changes:

  • CardText.direction(title:detail:) in DripCore picks the side for both lines: the title's first strong direction, or the detail's when the title has none ("404", an emoji).
  • Each line keeps the base direction of its own text, so a Latin detail under a Hebrew title keeps its punctuation.
  • IslandWindow.swift only applies that result, computed once per layout.
  • New tests cover Hebrew and Arabic titles over a Latin detail with trailing punctuation, the reverse, and neutral or empty titles.
  • The scripts snapshot reference is recorded again on the CI runner (Record snapshots workflow). It is the only reference that changed.

Evidence: test passes with the new tests. The scripts card (a Japanese title over a Hebrew and Arabic detail), before and after:

Before After
before after

Risk: two-way door. Blast radius: card text layout.

8000

@cloudflare-workers-and-pages
cloudflare-workers-and-pages Bot commented Nov 11, 2026 •
Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
drip-web 5ed56de Nov 11 2026, 02:04 PM

@jrnxf
jrnxf force-pushed the launch/w-text-direction branch 2 times, most recently from 7ae8af5 to 0555340 Compare November 11, 2026 13:38
@jrnxf
jrnxf force-pushed the launch/w-text-direction branch from 68905a7 to 5ed56de Compare November 11, 2026 14:01
@jrnxf
jrnxf merged commit 0bb1d5b into main Nov 11, 2026
29 of 34 checks passed
@jrnxf
jrnxf deleted the launch/w-text-direction branch November 11, 2026 15:41
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

0