@anchrd/intel-ui 0.38.0 → 0.39.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anchrd/intel-ui",
3
- "version": "0.38.0",
3
+ "version": "0.39.0",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -110,14 +110,23 @@ export function FrontmatterHead({ raw }: { raw: string }) {
110
110
  // The editor owns the text around this; the head itself is not typed into.
111
111
  contentEditable={false}
112
112
  data-frontmatter={open ? "open" : "closed"}
113
- className="my-2 w-full rounded-md border border-border bg-muted/40"
113
+ // ⚠️ No border and no vertical margin (#667). The head sits directly under the document's
114
+ // title, and a framed box there asks for more attention than metadata deserve. The tinted
115
+ // surface stays: without any ground at all the keys read as the first paragraph of the text,
116
+ // which is the state #657 came from.
117
+ //
118
+ // ⚠️ The margin is what the drag handle and the `+` line up against — BlockNote centres them
119
+ // on the block's own box, not on what is drawn inside it. `my-2` pushed the strip 12px below
120
+ // them; measured in a real editor, removing it leaves 2px, which is the difference between
121
+ // this row and a line of text.
122
+ className="w-full rounded-md bg-muted/40"
114
123
  >
115
124
  <button
116
125
  type="button"
117
126
  aria-expanded={open}
118
127
  aria-label={labels.expand}
119
128
  onClick={() => setOpen(!open)}
120
- className="flex w-full items-center gap-2 rounded-md px-3 py-1.5 text-left text-sm text-muted-foreground outline-none hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring"
129
+ className="flex w-full items-center gap-2 rounded-md px-3 py-1 text-left text-sm text-muted-foreground outline-none hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring"
121
130
  >
122
131
  <ChevronRight
123
132
  aria-hidden="true"