Skip to content

feat(properties): links in the box are chips with their site's favicon - #438

Merged
vite-hub[bot] merged 2 commits into
mainfrom
feat/properties-icons
Nov 16, 2026
Merged

vite-hub[bot] merged 2 commits into
mainfrom
feat/properties-icons

Conversation

@onmax

@onmax onmax commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

In the properties box, a link sits in the same 20px tag as a plain word, so a host that adds a site icon has to squeeze it in. The result is uneven: in Drop the GitHub icon had 2px above it and 4px to its left. comark-chips already gives links their favicon in the text, but the preset registers it before properties, so it never sees the box's links. Inside the box a chip also had a different problem. The box's dd is a flex row, so a chip there is laid out as a block that takes the row's 24px line height. That left 5.6px above the icon and 6.1px below, but only 2.6px to its left.

This PR:

  • registers comark-properties before comark-chips in the preset. A link in the box then becomes a chip, with the same favicon source and download setting as the links in the text. A GitHub repository link gets its owner's avatar, as it already does in the text.
  • keeps .cfm-tag for a list's plain items only. A link in a list is left for chips to draw, so it doesn't sit in a pill inside a pill.
  • gives .cp line-height: 1.375 and a .25em left padding, so the icon has about the same room on every side: 3.6 / 3.4 / 3.5px (top / bottom / left) in the box, 4 / 4 / 4px in a paragraph. The chip in a paragraph keeps its 24px height.
  • puts a favicon on a white plate in the dark theme, since sites draw favicons for a light tab bar and GitHub's or Airtable's mark disappears on a dark chip.
  • adds chipNode(href, text, src?, kind?) to comark-chips, for a host that adds links to a document after parsing and wants them to look like the document's own. Drop needs it for the links it adds to the box.

Without chips, properties renders its links as before.

Before/after on Drop: https://drop.vitehub.dev/d/97nv2gtmfd2n/before-after

I measured the padding in Chromium (Playwright 1.6x, a 16px favicon, 14px text in the box, 16px in prose). I didn't check Safari or Firefox.

comark-ui registers properties before chips, so chips turns the box's links into chips like
the document's own, with the same favicon source and download setting. A list keeps
`.cfm-tag` for its plain items only.

Chips get as much room above and below the image as on its left, also when a flex row such
as the box lays them out as blocks. In the dark theme a favicon sits on a white plate.
`chipNode()` builds the chip a host adds after parsing.
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-16T14:33:45.450059Z
We couldn’t complete this review. Comment @codex review to try again.
78ab6a0 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@pkg-pr-new

pkg-pr-new Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

comark-annotate

pnpm add https://pkg.pr.new/comark-annotate@438

comark-badge

pnpm add https://pkg.pr.new/comark-badge@438

comark-bundle

pnpm add https://pkg.pr.new/comark-bundle@438

comark-cards

pnpm add https://pkg.pr.new/comark-cards@438

comark-carousel

pnpm add https://pkg.pr.new/comark-carousel@438

comark-cast

pnpm add https://pkg.pr.new/comark-cast@438

comark-charts

pnpm add https://pkg.pr.new/comark-charts@438

comark-chat

pnpm add https://pkg.pr.new/comark-chat@438

comark-chips

pnpm add https://pkg.pr.new/comark-chips@438

comark-cjk

pnpm add https://pkg.pr.new/comark-cjk@438

comark-code

pnpm add https://pkg.pr.new/comark-code@438

comark-code-notes

pnpm add https://pkg.pr.new/comark-code-notes@438

comark-colors

pnpm add https://pkg.pr.new/comark-colors@438

comark-comments

pnpm add https://pkg.pr.new/comark-comments@438

comark-critic

pnpm add https://pkg.pr.new/comark-critic@438

comark-deflist

pnpm add https://pkg.pr.new/comark-deflist@438

comark-details

pnpm add https://pkg.pr.new/comark-details@438

comark-diagrams

pnpm add https://pkg.pr.new/comark-diagrams@438

comark-diff

pnpm add https://pkg.pr.new/comark-diff@438

comark-embed

pnpm add https://pkg.pr.new/comark-embed@438

comark-fields

pnpm add https://pkg.pr.new/comark-fields@438

comark-figure

pnpm add https://pkg.pr.new/comark-figure@438

comark-file-tree

pnpm add https://pkg.pr.new/comark-file-tree@438

comark-footnotes

pnpm add https://pkg.pr.new/comark-footnotes@438

comark-git-graph

pnpm add https://pkg.pr.new/comark-git-graph@438

comark-github

pnpm add https://pkg.pr.new/comark-github@438

comark-icon

pnpm add https://pkg.pr.new/comark-icon@438

comark-include

pnpm add https://pkg.pr.new/comark-include@438

comark-keys

pnpm add https://pkg.pr.new/comark-keys@438

comark-links

pnpm add https://pkg.pr.new/comark-links@438

comark-linter

pnpm add https://pkg.pr.new/comark-linter@438

comark-magic-move

pnpm add https://pkg.pr.new/comark-magic-move@438

comark-mark

pnpm add https://pkg.pr.new/comark-mark@438

markdown-it-to-comark

pnpm add https://pkg.pr.new/markdown-it-to-comark@438

marked-to-comark

pnpm add https://pkg.pr.new/marked-to-comark@438

comark-mathml

pnpm add https://pkg.pr.new/comark-mathml@438

comark-media

pnpm add https://pkg.pr.new/comark-media@438

comark-metrics

pnpm add https://pkg.pr.new/comark-metrics@438

migrate-to-comark

pnpm add https://pkg.pr.new/migrate-to-comark@438

comark-outline

pnpm add https://pkg.pr.new/comark-outline@438

comark-properties

pnpm add https://pkg.pr.new/comark-properties@438

comark-qr

pnpm add https://pkg.pr.new/comark-qr@438

comark-quiz

pnpm add https://pkg.pr.new/comark-quiz@438

comark-reading-time

pnpm add https://pkg.pr.new/comark-reading-time@438

remark-to-comark

pnpm add https://pkg.pr.new/remark-to-comark@438

comark-sources

pnpm add https://pkg.pr.new/comark-sources@438

comark-steps

pnpm add https://pkg.pr.new/comark-steps@438

comark-table

pnpm add https://pkg.pr.new/comark-table@438

comark-tabs

pnpm add https://pkg.pr.new/comark-tabs@438

comark-tests

pnpm add https://pkg.pr.new/comark-tests@438

comark-time

pnpm add https://pkg.pr.new/comark-time@438

comark-ui

pnpm add https://pkg.pr.new/comark-ui@438

comark-xref

pnpm add https://pkg.pr.new/comark-xref@438

comark-zoom

pnpm add https://pkg.pr.new/comark-zoom@438

commit: 1bbc54a

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found. No P0 or P1 findings remain.

Reviewed changes — Reviewed the full PR, including property-chip integration, the new post-parse helper, shared styles, renderer exports, documentation, and tests.

  • Properties integration: The preset now runs properties before chips, so generated links share prose links’ image settings, while linked list items avoid nested tag wrappers.
  • Post-parse helper: chipNode() constructs host-added chips and is exported through the root and all renderer entries, including Svelte’s declarations.
  • Chip layout and dark mode: Updated padding and line height apply to inline and flex-row chips, and dark-mode favicon plates leave avatar images unchanged.
  • Verification: The workspace build, 317 targeted tests, four Chromium E2E tests, and all three touched packages’ Doctor checks passed; additional checks covered HTML/Vue/React property rendering, mobile wrapping, and dark-mode styling. Safari and Firefox were not tested.

Pullfrog  | View workflow run | Using gpt-6.1-sol(xhigh) | 𝕏

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found. No P0 or P1 findings remain.

Reviewed changes — Reviewed the follow-up commit 1bbc54a since the previous Pullfrog review at 78ab6a0.

  • Unified property-link pills: Added scoped styling so avatar chips in the properties box use the same padding, background, ring, and hover fill as favicon chips, without changing prose avatars.
  • Added regression coverage: Added an assertion for the properties-specific avatar styling.
  • Verified the cascade: Passed chips/properties builds, publint, all 65 targeted tests, and the properties Doctor check. Chromium checks confirmed light/dark styling, both stylesheet orders, hover behavior, keyboard focus, and 320px layout; Safari and Firefox were not tested.

Pullfrog  | View workflow run | Using gpt-6.1-sol(xhigh) | 𝕏

onmax added a commit to vite-hub/drop that referenced this pull request Nov 16, 2026
Links get their site's icon from /api/favicons/<host>. Drop's server fetches each host's icon
once from the source comark-chips uses, keeps it 30 days, and falls back to the domain above
it, then to a link icon. Readers' browsers no longer ask Google or the linked sites. The doc's
chips and properties box, the dock, folder tiles and review.js all show the same picture.

A doc's links, the front matter's and Drop's own, are comark-chips' chips with even room
around the icon (comark-ui#438), in place of the tags the header's script decorated.
Views reads "38 views" with who they came from as icons, or "No views yet".

Takes comark-ui 0.12.2 from onmax/comark-ui#438. The Markdown references cover git-graph and
say bundle doesn't render in Drop.
@vite-hub
vite-hub Bot merged commit cb05f09 into main Nov 16, 2026
6 checks passed
@vite-hub
vite-hub Bot deleted the feat/properties-icons branch November 16, 2026 15:58
@github-actions github-actions Bot mentioned this pull request Nov 16, 2026
@vite-hub

vite-hub Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor
Session Status Started Duration
Pending Completed Not started —

Latest result

Pull request merged.

Final answers

Session

Pull request merged.

@github-actions github-actions Bot mentioned this pull request Nov 17, 2026
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