Skip to content

fix(quotes): size citation cards to their content - #621

Merged
nixuuu merged 1 commit into
devfrom
fix/citation-card-fit
Nov 13, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/citation-card-fit

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 13, 2026

Copy link
Copy Markdown
Member

Short citations opened a fixed-width (320 px) card, padded by the selection's leading/trailing line breaks (user screenshot: one short line in a large card).

  • Citation hover card and composer citation preview: w-max up to min(20rem, 100vw - 1rem).
  • citationPreview trims the quoted text and the note.
  • HoverCard: a caller's class replaces the default w-72 instead of adding a second, conflicting width utility.

Text sizes already follow the overlay density (docs/ui-scale.md); the large font in the report came from a build before #612.

Related: #612

Copy audit (docs/copy.md §8)

No UI text changed.

Checks

install, typecheck, lint, format:check and the quotes domain tests clean locally; full tests and web build in CI. Not yet checked in a browser.

Short citations opened a fixed 320 px card padded by the selection's
surrounding line breaks. Cards now fit their content up to 20rem, the
quoted text and note are trimmed, and a HoverCard caller's width
replaces the default instead of competing with it.

Related: #612
@nixuuu
nixuuu merged commit 269b935 into dev Nov 13, 2026
9 checks passed
@nixuuu
nixuuu deleted the fix/citation-card-fit branch November 13, 2026 09:34
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