Monorepo for Tangled tangled.org

appview/repo/fragments: improve diff copy behavior #924

merged
opened by evan.jarrett.net targeting master from evan.jarrett.net/core: diff-copy-span

Replace block-level divs with inline spans and use flex-col for visual line stacking. Move whitespace-pre to content spans only. This allows text content copied out of diffs to match the UI, and not copy hidden newlines.

Signed-off-by: Evan Jarrett evan@evanjarrett.com

0
by evan.jarrett.net 2 comments
expand 1 commit
appview/repo/fragments: improve diff copy behavior

thanks for this PR!, the only issue with spans is that the background does not stretch all the way when content overflows:

commit-span-bg.png

this can be fixed with inline-flex on the outer div

sign up or login to add to the discussion
expand 1 commit
appview/repo/fragments: improve diff copy behavior

wonderful, lgtm!

pull request successfully merged
sign up or login to add to the discussion
Labels

None yet.

assignee

None yet.

Participants 2
AT URI
at://did:plc:pddp4xt5lgnv2qsegbzzs4xg/sh.tangled.repo.pull/3mavykectvw22