@nuucognition/ncm-ui 0.1.1-beta.0 → 0.1.1-beta.1

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.
@@ -699,7 +699,8 @@ function ChartBlock({ block, className }) {
699
699
  "data-ncm-chart": "",
700
700
  "data-ncm-chart-type": block.chartType ?? "unknown",
701
701
  className: cn(
702
- "overflow-x-auto rounded-lg border border-border bg-muted p-4 font-mono text-sm",
702
+ // `overflow-y-hidden` pairs with `overflow-x-auto` on purpose see the note in `lib/defaults.ts`.
703
+ "overflow-x-auto overflow-y-hidden rounded-lg border border-border bg-muted p-4 font-mono text-sm",
703
704
  className
704
705
  ),
705
706
  children: /* @__PURE__ */ jsx("code", { children: block.content })
@@ -879,7 +880,8 @@ function DataviewBlock({ block, className }) {
879
880
  "data-ncm-dataview": "",
880
881
  "data-ncm-query-type": block.queryType,
881
882
  className: cn(
882
- "overflow-x-auto rounded-lg border border-border bg-muted p-4 font-mono text-sm",
883
+ // `overflow-y-hidden` pairs with `overflow-x-auto` on purpose see the note in `lib/defaults.ts`.
884
+ "overflow-x-auto overflow-y-hidden rounded-lg border border-border bg-muted p-4 font-mono text-sm",
883
885
  className
884
886
  ),
885
887
  children: /* @__PURE__ */ jsx("code", { children: block.query })
@@ -1218,7 +1220,8 @@ function HtmlBlock({ block, className }) {
1218
1220
  "data-block-id": block.id,
1219
1221
  "data-ncm-html": "",
1220
1222
  className: cn(
1221
- "overflow-x-auto rounded-lg border border-border bg-muted p-4 font-mono text-sm",
1223
+ // `overflow-y-hidden` pairs with `overflow-x-auto` on purpose see the note in `lib/defaults.ts`.
1224
+ "overflow-x-auto overflow-y-hidden rounded-lg border border-border bg-muted p-4 font-mono text-sm",
1222
1225
  className
1223
1226
  ),
1224
1227
  children: /* @__PURE__ */ jsx("code", { children: block.content })
@@ -1256,7 +1259,7 @@ function LatexDisplayBlock({ block, className }) {
1256
1259
  "data-ncm-type": block.type,
1257
1260
  "data-block-id": block.id,
1258
1261
  "data-ncm-latex-display": "",
1259
- className: cn("overflow-x-auto", className),
1262
+ className: cn("overflow-x-auto overflow-y-hidden", className),
1260
1263
  dangerouslySetInnerHTML: { __html: html }
1261
1264
  }
1262
1265
  );
@@ -1271,7 +1274,7 @@ function LatexDisplayBlock({ block, className }) {
1271
1274
  "data-ncm-type": block.type,
1272
1275
  "data-block-id": block.id,
1273
1276
  "data-ncm-latex-display": "",
1274
- className: cn("overflow-x-auto rounded-lg border border-border bg-muted p-4 font-mono text-sm", className),
1277
+ className: cn("overflow-x-auto overflow-y-hidden rounded-lg border border-border bg-muted p-4 font-mono text-sm", className),
1275
1278
  children: /* @__PURE__ */ jsx("code", { children: block.content })
1276
1279
  }
1277
1280
  );
@@ -1391,7 +1394,7 @@ function MathBlock({ block, className }) {
1391
1394
  "data-ncm-type": block.type,
1392
1395
  "data-block-id": block.id,
1393
1396
  "data-ncm-math": "",
1394
- className: cn("overflow-x-auto", className),
1397
+ className: cn("overflow-x-auto overflow-y-hidden", className),
1395
1398
  dangerouslySetInnerHTML: { __html: html }
1396
1399
  }
1397
1400
  );
@@ -1407,7 +1410,8 @@ function MathBlock({ block, className }) {
1407
1410
  "data-block-id": block.id,
1408
1411
  "data-ncm-math": "",
1409
1412
  className: cn(
1410
- "overflow-x-auto rounded-lg border border-border bg-muted p-4 font-mono text-sm",
1413
+ // `overflow-y-hidden` pairs with `overflow-x-auto` on purpose see the note in `lib/defaults.ts`.
1414
+ "overflow-x-auto overflow-y-hidden rounded-lg border border-border bg-muted p-4 font-mono text-sm",
1411
1415
  className
1412
1416
  ),
1413
1417
  children: /* @__PURE__ */ jsx("code", { children: block.content })
@@ -1425,7 +1429,8 @@ function MermaidBlock({ block, className }) {
1425
1429
  "data-ncm-mermaid": "",
1426
1430
  "data-ncm-diagram-type": block.diagramType,
1427
1431
  className: cn(
1428
- "overflow-x-auto rounded-lg border border-border bg-muted p-4 font-mono text-sm",
1432
+ // `overflow-y-hidden` pairs with `overflow-x-auto` on purpose see the note in `lib/defaults.ts`.
1433
+ "overflow-x-auto overflow-y-hidden rounded-lg border border-border bg-muted p-4 font-mono text-sm",
1429
1434
  className
1430
1435
  ),
1431
1436
  children: /* @__PURE__ */ jsx("code", { children: block.content })
@@ -1486,7 +1491,7 @@ function TableBlock({ block, className }) {
1486
1491
  "data-ncm-type": block.type,
1487
1492
  "data-block-id": block.id,
1488
1493
  "data-ncm-table": "",
1489
- className: cn("w-full overflow-x-auto", className),
1494
+ className: cn("w-full overflow-x-auto overflow-y-hidden", className),
1490
1495
  children: /* @__PURE__ */ jsxs("table", { role: "table", "data-ncm-table-element": "", children: [
1491
1496
  /* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsx("tr", { "data-ncm-table-row": "", children: block.headers.map((header, index) => /* @__PURE__ */ jsx("th", { "data-ncm-table-header": "", children: /* @__PURE__ */ jsx(InlineContent, { content: header }) }, index)) }) }),
1492
1497
  /* @__PURE__ */ jsx("tbody", { children: block.rows.map((row, rowIndex) => {
@@ -1572,7 +1577,7 @@ function FallbackBlock({ block, className }) {
1572
1577
  "data-block-id": block.id,
1573
1578
  "data-ncm-fallback": "",
1574
1579
  className: cn(
1575
- "overflow-x-auto rounded-lg border border-border bg-muted p-4 font-mono text-sm",
1580
+ "overflow-x-auto overflow-y-hidden rounded-lg border border-border bg-muted p-4 font-mono text-sm",
1576
1581
  className
1577
1582
  )
1578
1583
  },
@@ -1628,7 +1633,7 @@ function CustomCodeBlock({ block, className }) {
1628
1633
  "data-block-id": block.id,
1629
1634
  "data-ncm-custom-code": "",
1630
1635
  "data-ncm-language": block.language,
1631
- className: cn("overflow-x-auto", className),
1636
+ className: cn("overflow-x-auto overflow-y-hidden", className),
1632
1637
  children: [
1633
1638
  /* @__PURE__ */ jsx("div", { className: "mb-2 text-xs font-medium text-muted-foreground", children: block.language }),
1634
1639
  /* @__PURE__ */ jsx("pre", { children: /* @__PURE__ */ jsx("code", { children: block.content }) })
@@ -724,7 +724,8 @@ function ChartBlock({ block, className }) {
724
724
  "data-ncm-chart": "",
725
725
  "data-ncm-chart-type": block.chartType ?? "unknown",
726
726
  className: cn(
727
- "overflow-x-auto rounded-lg border border-border bg-muted p-4 font-mono text-sm",
727
+ // `overflow-y-hidden` pairs with `overflow-x-auto` on purpose see the note in `lib/defaults.ts`.
728
+ "overflow-x-auto overflow-y-hidden rounded-lg border border-border bg-muted p-4 font-mono text-sm",
728
729
  className
729
730
  ),
730
731
  children: /* @__PURE__ */ jsx("code", { children: block.content })
@@ -904,7 +905,8 @@ function DataviewBlock({ block, className }) {
904
905
  "data-ncm-dataview": "",
905
906
  "data-ncm-query-type": block.queryType,
906
907
  className: cn(
907
- "overflow-x-auto rounded-lg border border-border bg-muted p-4 font-mono text-sm",
908
+ // `overflow-y-hidden` pairs with `overflow-x-auto` on purpose see the note in `lib/defaults.ts`.
909
+ "overflow-x-auto overflow-y-hidden rounded-lg border border-border bg-muted p-4 font-mono text-sm",
908
910
  className
909
911
  ),
910
912
  children: /* @__PURE__ */ jsx("code", { children: block.query })
@@ -1243,7 +1245,8 @@ function HtmlBlock({ block, className }) {
1243
1245
  "data-block-id": block.id,
1244
1246
  "data-ncm-html": "",
1245
1247
  className: cn(
1246
- "overflow-x-auto rounded-lg border border-border bg-muted p-4 font-mono text-sm",
1248
+ // `overflow-y-hidden` pairs with `overflow-x-auto` on purpose see the note in `lib/defaults.ts`.
1249
+ "overflow-x-auto overflow-y-hidden rounded-lg border border-border bg-muted p-4 font-mono text-sm",
1247
1250
  className
1248
1251
  ),
1249
1252
  children: /* @__PURE__ */ jsx("code", { children: block.content })
@@ -1281,7 +1284,7 @@ function LatexDisplayBlock({ block, className }) {
1281
1284
  "data-ncm-type": block.type,
1282
1285
  "data-block-id": block.id,
1283
1286
  "data-ncm-latex-display": "",
1284
- className: cn("overflow-x-auto", className),
1287
+ className: cn("overflow-x-auto overflow-y-hidden", className),
1285
1288
  dangerouslySetInnerHTML: { __html: html }
1286
1289
  }
1287
1290
  );
@@ -1296,7 +1299,7 @@ function LatexDisplayBlock({ block, className }) {
1296
1299
  "data-ncm-type": block.type,
1297
1300
  "data-block-id": block.id,
1298
1301
  "data-ncm-latex-display": "",
1299
- className: cn("overflow-x-auto rounded-lg border border-border bg-muted p-4 font-mono text-sm", className),
1302
+ className: cn("overflow-x-auto overflow-y-hidden rounded-lg border border-border bg-muted p-4 font-mono text-sm", className),
1300
1303
  children: /* @__PURE__ */ jsx("code", { children: block.content })
1301
1304
  }
1302
1305
  );
@@ -1416,7 +1419,7 @@ function MathBlock({ block, className }) {
1416
1419
  "data-ncm-type": block.type,
1417
1420
  "data-block-id": block.id,
1418
1421
  "data-ncm-math": "",
1419
- className: cn("overflow-x-auto", className),
1422
+ className: cn("overflow-x-auto overflow-y-hidden", className),
1420
1423
  dangerouslySetInnerHTML: { __html: html }
1421
1424
  }
1422
1425
  );
@@ -1432,7 +1435,8 @@ function MathBlock({ block, className }) {
1432
1435
  "data-block-id": block.id,
1433
1436
  "data-ncm-math": "",
1434
1437
  className: cn(
1435
- "overflow-x-auto rounded-lg border border-border bg-muted p-4 font-mono text-sm",
1438
+ // `overflow-y-hidden` pairs with `overflow-x-auto` on purpose see the note in `lib/defaults.ts`.
1439
+ "overflow-x-auto overflow-y-hidden rounded-lg border border-border bg-muted p-4 font-mono text-sm",
1436
1440
  className
1437
1441
  ),
1438
1442
  children: /* @__PURE__ */ jsx("code", { children: block.content })
@@ -1450,7 +1454,8 @@ function MermaidBlock({ block, className }) {
1450
1454
  "data-ncm-mermaid": "",
1451
1455
  "data-ncm-diagram-type": block.diagramType,
1452
1456
  className: cn(
1453
- "overflow-x-auto rounded-lg border border-border bg-muted p-4 font-mono text-sm",
1457
+ // `overflow-y-hidden` pairs with `overflow-x-auto` on purpose see the note in `lib/defaults.ts`.
1458
+ "overflow-x-auto overflow-y-hidden rounded-lg border border-border bg-muted p-4 font-mono text-sm",
1454
1459
  className
1455
1460
  ),
1456
1461
  children: /* @__PURE__ */ jsx("code", { children: block.content })
@@ -1511,7 +1516,7 @@ function TableBlock({ block, className }) {
1511
1516
  "data-ncm-type": block.type,
1512
1517
  "data-block-id": block.id,
1513
1518
  "data-ncm-table": "",
1514
- className: cn("w-full overflow-x-auto", className),
1519
+ className: cn("w-full overflow-x-auto overflow-y-hidden", className),
1515
1520
  children: /* @__PURE__ */ jsxs("table", { role: "table", "data-ncm-table-element": "", children: [
1516
1521
  /* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsx("tr", { "data-ncm-table-row": "", children: block.headers.map((header, index) => /* @__PURE__ */ jsx("th", { "data-ncm-table-header": "", children: /* @__PURE__ */ jsx(InlineContent, { content: header }) }, index)) }) }),
1517
1522
  /* @__PURE__ */ jsx("tbody", { children: block.rows.map((row, rowIndex) => {
@@ -1597,7 +1602,7 @@ function FallbackBlock({ block, className }) {
1597
1602
  "data-block-id": block.id,
1598
1603
  "data-ncm-fallback": "",
1599
1604
  className: cn(
1600
- "overflow-x-auto rounded-lg border border-border bg-muted p-4 font-mono text-sm",
1605
+ "overflow-x-auto overflow-y-hidden rounded-lg border border-border bg-muted p-4 font-mono text-sm",
1601
1606
  className
1602
1607
  )
1603
1608
  },
@@ -1653,7 +1658,7 @@ function CustomCodeBlock({ block, className }) {
1653
1658
  "data-block-id": block.id,
1654
1659
  "data-ncm-custom-code": "",
1655
1660
  "data-ncm-language": block.language,
1656
- className: cn("overflow-x-auto", className),
1661
+ className: cn("overflow-x-auto overflow-y-hidden", className),
1657
1662
  children: [
1658
1663
  /* @__PURE__ */ jsx("div", { className: "mb-2 text-xs font-medium text-muted-foreground", children: block.language }),
1659
1664
  /* @__PURE__ */ jsx("pre", { children: /* @__PURE__ */ jsx("code", { children: block.content }) })
@@ -18,7 +18,8 @@ function ChartBlock({ block, className }) {
18
18
  "data-ncm-chart": "",
19
19
  "data-ncm-chart-type": block.chartType ?? "unknown",
20
20
  className: cn(
21
- "overflow-x-auto rounded-lg border border-border bg-muted p-4 font-mono text-sm",
21
+ // `overflow-y-hidden` pairs with `overflow-x-auto` on purpose see the note in `lib/defaults.ts`.
22
+ "overflow-x-auto overflow-y-hidden rounded-lg border border-border bg-muted p-4 font-mono text-sm",
22
23
  className
23
24
  ),
24
25
  children: /* @__PURE__ */ jsx("code", { children: block.content })
@@ -19,7 +19,7 @@ function CustomCodeBlock({ block, className }) {
19
19
  "data-block-id": block.id,
20
20
  "data-ncm-custom-code": "",
21
21
  "data-ncm-language": block.language,
22
- className: cn("overflow-x-auto", className),
22
+ className: cn("overflow-x-auto overflow-y-hidden", className),
23
23
  children: [
24
24
  /* @__PURE__ */ jsx("div", { className: "mb-2 text-xs font-medium text-muted-foreground", children: block.language }),
25
25
  /* @__PURE__ */ jsx("pre", { children: /* @__PURE__ */ jsx("code", { children: block.content }) })
@@ -18,7 +18,8 @@ function DataviewBlock({ block, className }) {
18
18
  "data-ncm-dataview": "",
19
19
  "data-ncm-query-type": block.queryType,
20
20
  className: cn(
21
- "overflow-x-auto rounded-lg border border-border bg-muted p-4 font-mono text-sm",
21
+ // `overflow-y-hidden` pairs with `overflow-x-auto` on purpose see the note in `lib/defaults.ts`.
22
+ "overflow-x-auto overflow-y-hidden rounded-lg border border-border bg-muted p-4 font-mono text-sm",
22
23
  className
23
24
  ),
24
25
  children: /* @__PURE__ */ jsx("code", { children: block.query })
@@ -736,7 +736,8 @@ function ChartBlock({ block, className }) {
736
736
  "data-ncm-chart": "",
737
737
  "data-ncm-chart-type": block.chartType ?? "unknown",
738
738
  className: cn(
739
- "overflow-x-auto rounded-lg border border-border bg-muted p-4 font-mono text-sm",
739
+ // `overflow-y-hidden` pairs with `overflow-x-auto` on purpose see the note in `lib/defaults.ts`.
740
+ "overflow-x-auto overflow-y-hidden rounded-lg border border-border bg-muted p-4 font-mono text-sm",
740
741
  className
741
742
  ),
742
743
  children: /* @__PURE__ */ jsx("code", { children: block.content })
@@ -916,7 +917,8 @@ function DataviewBlock({ block, className }) {
916
917
  "data-ncm-dataview": "",
917
918
  "data-ncm-query-type": block.queryType,
918
919
  className: cn(
919
- "overflow-x-auto rounded-lg border border-border bg-muted p-4 font-mono text-sm",
920
+ // `overflow-y-hidden` pairs with `overflow-x-auto` on purpose see the note in `lib/defaults.ts`.
921
+ "overflow-x-auto overflow-y-hidden rounded-lg border border-border bg-muted p-4 font-mono text-sm",
920
922
  className
921
923
  ),
922
924
  children: /* @__PURE__ */ jsx("code", { children: block.query })
@@ -1240,7 +1242,8 @@ function HtmlBlock({ block, className }) {
1240
1242
  "data-block-id": block.id,
1241
1243
  "data-ncm-html": "",
1242
1244
  className: cn(
1243
- "overflow-x-auto rounded-lg border border-border bg-muted p-4 font-mono text-sm",
1245
+ // `overflow-y-hidden` pairs with `overflow-x-auto` on purpose see the note in `lib/defaults.ts`.
1246
+ "overflow-x-auto overflow-y-hidden rounded-lg border border-border bg-muted p-4 font-mono text-sm",
1244
1247
  className
1245
1248
  ),
1246
1249
  children: /* @__PURE__ */ jsx("code", { children: block.content })
@@ -1278,7 +1281,7 @@ function LatexDisplayBlock({ block, className }) {
1278
1281
  "data-ncm-type": block.type,
1279
1282
  "data-block-id": block.id,
1280
1283
  "data-ncm-latex-display": "",
1281
- className: cn("overflow-x-auto", className),
1284
+ className: cn("overflow-x-auto overflow-y-hidden", className),
1282
1285
  dangerouslySetInnerHTML: { __html: html }
1283
1286
  }
1284
1287
  );
@@ -1293,7 +1296,7 @@ function LatexDisplayBlock({ block, className }) {
1293
1296
  "data-ncm-type": block.type,
1294
1297
  "data-block-id": block.id,
1295
1298
  "data-ncm-latex-display": "",
1296
- className: cn("overflow-x-auto rounded-lg border border-border bg-muted p-4 font-mono text-sm", className),
1299
+ className: cn("overflow-x-auto overflow-y-hidden rounded-lg border border-border bg-muted p-4 font-mono text-sm", className),
1297
1300
  children: /* @__PURE__ */ jsx("code", { children: block.content })
1298
1301
  }
1299
1302
  );
@@ -1413,7 +1416,7 @@ function MathBlock({ block, className }) {
1413
1416
  "data-ncm-type": block.type,
1414
1417
  "data-block-id": block.id,
1415
1418
  "data-ncm-math": "",
1416
- className: cn("overflow-x-auto", className),
1419
+ className: cn("overflow-x-auto overflow-y-hidden", className),
1417
1420
  dangerouslySetInnerHTML: { __html: html }
1418
1421
  }
1419
1422
  );
@@ -1429,7 +1432,8 @@ function MathBlock({ block, className }) {
1429
1432
  "data-block-id": block.id,
1430
1433
  "data-ncm-math": "",
1431
1434
  className: cn(
1432
- "overflow-x-auto rounded-lg border border-border bg-muted p-4 font-mono text-sm",
1435
+ // `overflow-y-hidden` pairs with `overflow-x-auto` on purpose see the note in `lib/defaults.ts`.
1436
+ "overflow-x-auto overflow-y-hidden rounded-lg border border-border bg-muted p-4 font-mono text-sm",
1433
1437
  className
1434
1438
  ),
1435
1439
  children: /* @__PURE__ */ jsx("code", { children: block.content })
@@ -1447,7 +1451,8 @@ function MermaidBlock({ block, className }) {
1447
1451
  "data-ncm-mermaid": "",
1448
1452
  "data-ncm-diagram-type": block.diagramType,
1449
1453
  className: cn(
1450
- "overflow-x-auto rounded-lg border border-border bg-muted p-4 font-mono text-sm",
1454
+ // `overflow-y-hidden` pairs with `overflow-x-auto` on purpose see the note in `lib/defaults.ts`.
1455
+ "overflow-x-auto overflow-y-hidden rounded-lg border border-border bg-muted p-4 font-mono text-sm",
1451
1456
  className
1452
1457
  ),
1453
1458
  children: /* @__PURE__ */ jsx("code", { children: block.content })
@@ -1508,7 +1513,7 @@ function TableBlock({ block, className }) {
1508
1513
  "data-ncm-type": block.type,
1509
1514
  "data-block-id": block.id,
1510
1515
  "data-ncm-table": "",
1511
- className: cn("w-full overflow-x-auto", className),
1516
+ className: cn("w-full overflow-x-auto overflow-y-hidden", className),
1512
1517
  children: /* @__PURE__ */ jsxs("table", { role: "table", "data-ncm-table-element": "", children: [
1513
1518
  /* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsx("tr", { "data-ncm-table-row": "", children: block.headers.map((header, index) => /* @__PURE__ */ jsx("th", { "data-ncm-table-header": "", children: /* @__PURE__ */ jsx(InlineContent, { content: header }) }, index)) }) }),
1514
1519
  /* @__PURE__ */ jsx("tbody", { children: block.rows.map((row, rowIndex) => {
@@ -1594,7 +1599,7 @@ function FallbackBlock({ block, className }) {
1594
1599
  "data-block-id": block.id,
1595
1600
  "data-ncm-fallback": "",
1596
1601
  className: cn(
1597
- "overflow-x-auto rounded-lg border border-border bg-muted p-4 font-mono text-sm",
1602
+ "overflow-x-auto overflow-y-hidden rounded-lg border border-border bg-muted p-4 font-mono text-sm",
1598
1603
  className
1599
1604
  )
1600
1605
  },
@@ -1650,7 +1655,7 @@ function CustomCodeBlock({ block, className }) {
1650
1655
  "data-block-id": block.id,
1651
1656
  "data-ncm-custom-code": "",
1652
1657
  "data-ncm-language": block.language,
1653
- className: cn("overflow-x-auto", className),
1658
+ className: cn("overflow-x-auto overflow-y-hidden", className),
1654
1659
  children: [
1655
1660
  /* @__PURE__ */ jsx("div", { className: "mb-2 text-xs font-medium text-muted-foreground", children: block.language }),
1656
1661
  /* @__PURE__ */ jsx("pre", { children: /* @__PURE__ */ jsx("code", { children: block.content }) })
@@ -736,7 +736,8 @@ function ChartBlock({ block, className }) {
736
736
  "data-ncm-chart": "",
737
737
  "data-ncm-chart-type": block.chartType ?? "unknown",
738
738
  className: cn(
739
- "overflow-x-auto rounded-lg border border-border bg-muted p-4 font-mono text-sm",
739
+ // `overflow-y-hidden` pairs with `overflow-x-auto` on purpose see the note in `lib/defaults.ts`.
740
+ "overflow-x-auto overflow-y-hidden rounded-lg border border-border bg-muted p-4 font-mono text-sm",
740
741
  className
741
742
  ),
742
743
  children: /* @__PURE__ */ jsx("code", { children: block.content })
@@ -916,7 +917,8 @@ function DataviewBlock({ block, className }) {
916
917
  "data-ncm-dataview": "",
917
918
  "data-ncm-query-type": block.queryType,
918
919
  className: cn(
919
- "overflow-x-auto rounded-lg border border-border bg-muted p-4 font-mono text-sm",
920
+ // `overflow-y-hidden` pairs with `overflow-x-auto` on purpose see the note in `lib/defaults.ts`.
921
+ "overflow-x-auto overflow-y-hidden rounded-lg border border-border bg-muted p-4 font-mono text-sm",
920
922
  className
921
923
  ),
922
924
  children: /* @__PURE__ */ jsx("code", { children: block.query })
@@ -1236,7 +1238,8 @@ function HtmlBlock({ block, className }) {
1236
1238
  "data-block-id": block.id,
1237
1239
  "data-ncm-html": "",
1238
1240
  className: cn(
1239
- "overflow-x-auto rounded-lg border border-border bg-muted p-4 font-mono text-sm",
1241
+ // `overflow-y-hidden` pairs with `overflow-x-auto` on purpose see the note in `lib/defaults.ts`.
1242
+ "overflow-x-auto overflow-y-hidden rounded-lg border border-border bg-muted p-4 font-mono text-sm",
1240
1243
  className
1241
1244
  ),
1242
1245
  children: /* @__PURE__ */ jsx("code", { children: block.content })
@@ -1274,7 +1277,7 @@ function LatexDisplayBlock({ block, className }) {
1274
1277
  "data-ncm-type": block.type,
1275
1278
  "data-block-id": block.id,
1276
1279
  "data-ncm-latex-display": "",
1277
- className: cn("overflow-x-auto", className),
1280
+ className: cn("overflow-x-auto overflow-y-hidden", className),
1278
1281
  dangerouslySetInnerHTML: { __html: html }
1279
1282
  }
1280
1283
  );
@@ -1289,7 +1292,7 @@ function LatexDisplayBlock({ block, className }) {
1289
1292
  "data-ncm-type": block.type,
1290
1293
  "data-block-id": block.id,
1291
1294
  "data-ncm-latex-display": "",
1292
- className: cn("overflow-x-auto rounded-lg border border-border bg-muted p-4 font-mono text-sm", className),
1295
+ className: cn("overflow-x-auto overflow-y-hidden rounded-lg border border-border bg-muted p-4 font-mono text-sm", className),
1293
1296
  children: /* @__PURE__ */ jsx("code", { children: block.content })
1294
1297
  }
1295
1298
  );
@@ -1409,7 +1412,7 @@ function MathBlock({ block, className }) {
1409
1412
  "data-ncm-type": block.type,
1410
1413
  "data-block-id": block.id,
1411
1414
  "data-ncm-math": "",
1412
- className: cn("overflow-x-auto", className),
1415
+ className: cn("overflow-x-auto overflow-y-hidden", className),
1413
1416
  dangerouslySetInnerHTML: { __html: html }
1414
1417
  }
1415
1418
  );
@@ -1425,7 +1428,8 @@ function MathBlock({ block, className }) {
1425
1428
  "data-block-id": block.id,
1426
1429
  "data-ncm-math": "",
1427
1430
  className: cn(
1428
- "overflow-x-auto rounded-lg border border-border bg-muted p-4 font-mono text-sm",
1431
+ // `overflow-y-hidden` pairs with `overflow-x-auto` on purpose see the note in `lib/defaults.ts`.
1432
+ "overflow-x-auto overflow-y-hidden rounded-lg border border-border bg-muted p-4 font-mono text-sm",
1429
1433
  className
1430
1434
  ),
1431
1435
  children: /* @__PURE__ */ jsx("code", { children: block.content })
@@ -1443,7 +1447,8 @@ function MermaidBlock({ block, className }) {
1443
1447
  "data-ncm-mermaid": "",
1444
1448
  "data-ncm-diagram-type": block.diagramType,
1445
1449
  className: cn(
1446
- "overflow-x-auto rounded-lg border border-border bg-muted p-4 font-mono text-sm",
1450
+ // `overflow-y-hidden` pairs with `overflow-x-auto` on purpose see the note in `lib/defaults.ts`.
1451
+ "overflow-x-auto overflow-y-hidden rounded-lg border border-border bg-muted p-4 font-mono text-sm",
1447
1452
  className
1448
1453
  ),
1449
1454
  children: /* @__PURE__ */ jsx("code", { children: block.content })
@@ -1504,7 +1509,7 @@ function TableBlock({ block, className }) {
1504
1509
  "data-ncm-type": block.type,
1505
1510
  "data-block-id": block.id,
1506
1511
  "data-ncm-table": "",
1507
- className: cn("w-full overflow-x-auto", className),
1512
+ className: cn("w-full overflow-x-auto overflow-y-hidden", className),
1508
1513
  children: /* @__PURE__ */ jsxs("table", { role: "table", "data-ncm-table-element": "", children: [
1509
1514
  /* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsx("tr", { "data-ncm-table-row": "", children: block.headers.map((header, index) => /* @__PURE__ */ jsx("th", { "data-ncm-table-header": "", children: /* @__PURE__ */ jsx(InlineContent, { content: header }) }, index)) }) }),
1510
1515
  /* @__PURE__ */ jsx("tbody", { children: block.rows.map((row, rowIndex) => {
@@ -1590,7 +1595,7 @@ function FallbackBlock({ block, className }) {
1590
1595
  "data-block-id": block.id,
1591
1596
  "data-ncm-fallback": "",
1592
1597
  className: cn(
1593
- "overflow-x-auto rounded-lg border border-border bg-muted p-4 font-mono text-sm",
1598
+ "overflow-x-auto overflow-y-hidden rounded-lg border border-border bg-muted p-4 font-mono text-sm",
1594
1599
  className
1595
1600
  )
1596
1601
  },
@@ -1646,7 +1651,7 @@ function CustomCodeBlock({ block, className }) {
1646
1651
  "data-block-id": block.id,
1647
1652
  "data-ncm-custom-code": "",
1648
1653
  "data-ncm-language": block.language,
1649
- className: cn("overflow-x-auto", className),
1654
+ className: cn("overflow-x-auto overflow-y-hidden", className),
1650
1655
  children: [
1651
1656
  /* @__PURE__ */ jsx("div", { className: "mb-2 text-xs font-medium text-muted-foreground", children: block.language }),
1652
1657
  /* @__PURE__ */ jsx("pre", { children: /* @__PURE__ */ jsx("code", { children: block.content }) })
@@ -18,7 +18,8 @@ function HtmlBlock({ block, className }) {
18
18
  "data-block-id": block.id,
19
19
  "data-ncm-html": "",
20
20
  className: cn(
21
- "overflow-x-auto rounded-lg border border-border bg-muted p-4 font-mono text-sm",
21
+ // `overflow-y-hidden` pairs with `overflow-x-auto` on purpose see the note in `lib/defaults.ts`.
22
+ "overflow-x-auto overflow-y-hidden rounded-lg border border-border bg-muted p-4 font-mono text-sm",
22
23
  className
23
24
  ),
24
25
  children: /* @__PURE__ */ jsx("code", { children: block.content })
@@ -699,7 +699,8 @@ function ChartBlock({ block, className }) {
699
699
  "data-ncm-chart": "",
700
700
  "data-ncm-chart-type": block.chartType ?? "unknown",
701
701
  className: cn(
702
- "overflow-x-auto rounded-lg border border-border bg-muted p-4 font-mono text-sm",
702
+ // `overflow-y-hidden` pairs with `overflow-x-auto` on purpose see the note in `lib/defaults.ts`.
703
+ "overflow-x-auto overflow-y-hidden rounded-lg border border-border bg-muted p-4 font-mono text-sm",
703
704
  className
704
705
  ),
705
706
  children: /* @__PURE__ */ jsx("code", { children: block.content })
@@ -879,7 +880,8 @@ function DataviewBlock({ block, className }) {
879
880
  "data-ncm-dataview": "",
880
881
  "data-ncm-query-type": block.queryType,
881
882
  className: cn(
882
- "overflow-x-auto rounded-lg border border-border bg-muted p-4 font-mono text-sm",
883
+ // `overflow-y-hidden` pairs with `overflow-x-auto` on purpose see the note in `lib/defaults.ts`.
884
+ "overflow-x-auto overflow-y-hidden rounded-lg border border-border bg-muted p-4 font-mono text-sm",
883
885
  className
884
886
  ),
885
887
  children: /* @__PURE__ */ jsx("code", { children: block.query })
@@ -1218,7 +1220,8 @@ function HtmlBlock({ block, className }) {
1218
1220
  "data-block-id": block.id,
1219
1221
  "data-ncm-html": "",
1220
1222
  className: cn(
1221
- "overflow-x-auto rounded-lg border border-border bg-muted p-4 font-mono text-sm",
1223
+ // `overflow-y-hidden` pairs with `overflow-x-auto` on purpose see the note in `lib/defaults.ts`.
1224
+ "overflow-x-auto overflow-y-hidden rounded-lg border border-border bg-muted p-4 font-mono text-sm",
1222
1225
  className
1223
1226
  ),
1224
1227
  children: /* @__PURE__ */ jsx("code", { children: block.content })
@@ -1279,7 +1282,7 @@ function LatexDisplayBlock({ block, className }) {
1279
1282
  "data-ncm-type": block.type,
1280
1283
  "data-block-id": block.id,
1281
1284
  "data-ncm-latex-display": "",
1282
- className: cn("overflow-x-auto", className),
1285
+ className: cn("overflow-x-auto overflow-y-hidden", className),
1283
1286
  dangerouslySetInnerHTML: { __html: html }
1284
1287
  }
1285
1288
  );
@@ -1294,7 +1297,7 @@ function LatexDisplayBlock({ block, className }) {
1294
1297
  "data-ncm-type": block.type,
1295
1298
  "data-block-id": block.id,
1296
1299
  "data-ncm-latex-display": "",
1297
- className: cn("overflow-x-auto rounded-lg border border-border bg-muted p-4 font-mono text-sm", className),
1300
+ className: cn("overflow-x-auto overflow-y-hidden rounded-lg border border-border bg-muted p-4 font-mono text-sm", className),
1298
1301
  children: /* @__PURE__ */ jsx("code", { children: block.content })
1299
1302
  }
1300
1303
  );
@@ -1414,7 +1417,7 @@ function MathBlock({ block, className }) {
1414
1417
  "data-ncm-type": block.type,
1415
1418
  "data-block-id": block.id,
1416
1419
  "data-ncm-math": "",
1417
- className: cn("overflow-x-auto", className),
1420
+ className: cn("overflow-x-auto overflow-y-hidden", className),
1418
1421
  dangerouslySetInnerHTML: { __html: html }
1419
1422
  }
1420
1423
  );
@@ -1430,7 +1433,8 @@ function MathBlock({ block, className }) {
1430
1433
  "data-block-id": block.id,
1431
1434
  "data-ncm-math": "",
1432
1435
  className: cn(
1433
- "overflow-x-auto rounded-lg border border-border bg-muted p-4 font-mono text-sm",
1436
+ // `overflow-y-hidden` pairs with `overflow-x-auto` on purpose see the note in `lib/defaults.ts`.
1437
+ "overflow-x-auto overflow-y-hidden rounded-lg border border-border bg-muted p-4 font-mono text-sm",
1434
1438
  className
1435
1439
  ),
1436
1440
  children: /* @__PURE__ */ jsx("code", { children: block.content })
@@ -1448,7 +1452,8 @@ function MermaidBlock({ block, className }) {
1448
1452
  "data-ncm-mermaid": "",
1449
1453
  "data-ncm-diagram-type": block.diagramType,
1450
1454
  className: cn(
1451
- "overflow-x-auto rounded-lg border border-border bg-muted p-4 font-mono text-sm",
1455
+ // `overflow-y-hidden` pairs with `overflow-x-auto` on purpose see the note in `lib/defaults.ts`.
1456
+ "overflow-x-auto overflow-y-hidden rounded-lg border border-border bg-muted p-4 font-mono text-sm",
1452
1457
  className
1453
1458
  ),
1454
1459
  children: /* @__PURE__ */ jsx("code", { children: block.content })
@@ -1509,7 +1514,7 @@ function TableBlock({ block, className }) {
1509
1514
  "data-ncm-type": block.type,
1510
1515
  "data-block-id": block.id,
1511
1516
  "data-ncm-table": "",
1512
- className: cn("w-full overflow-x-auto", className),
1517
+ className: cn("w-full overflow-x-auto overflow-y-hidden", className),
1513
1518
  children: /* @__PURE__ */ jsxs("table", { role: "table", "data-ncm-table-element": "", children: [
1514
1519
  /* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsx("tr", { "data-ncm-table-row": "", children: block.headers.map((header, index) => /* @__PURE__ */ jsx("th", { "data-ncm-table-header": "", children: /* @__PURE__ */ jsx(InlineContent, { content: header }) }, index)) }) }),
1515
1520
  /* @__PURE__ */ jsx("tbody", { children: block.rows.map((row, rowIndex) => {
@@ -1595,7 +1600,7 @@ function FallbackBlock({ block, className }) {
1595
1600
  "data-block-id": block.id,
1596
1601
  "data-ncm-fallback": "",
1597
1602
  className: cn(
1598
- "overflow-x-auto rounded-lg border border-border bg-muted p-4 font-mono text-sm",
1603
+ "overflow-x-auto overflow-y-hidden rounded-lg border border-border bg-muted p-4 font-mono text-sm",
1599
1604
  className
1600
1605
  )
1601
1606
  },
@@ -1651,7 +1656,7 @@ function CustomCodeBlock({ block, className }) {
1651
1656
  "data-block-id": block.id,
1652
1657
  "data-ncm-custom-code": "",
1653
1658
  "data-ncm-language": block.language,
1654
- className: cn("overflow-x-auto", className),
1659
+ className: cn("overflow-x-auto overflow-y-hidden", className),
1655
1660
  children: [
1656
1661
  /* @__PURE__ */ jsx("div", { className: "mb-2 text-xs font-medium text-muted-foreground", children: block.language }),
1657
1662
  /* @__PURE__ */ jsx("pre", { children: /* @__PURE__ */ jsx("code", { children: block.content }) })
@@ -83,7 +83,7 @@ function LatexDisplayBlock({ block, className }) {
83
83
  "data-ncm-type": block.type,
84
84
  "data-block-id": block.id,
85
85
  "data-ncm-latex-display": "",
86
- className: cn("overflow-x-auto", className),
86
+ className: cn("overflow-x-auto overflow-y-hidden", className),
87
87
  dangerouslySetInnerHTML: { __html: html }
88
88
  }
89
89
  );
@@ -98,7 +98,7 @@ function LatexDisplayBlock({ block, className }) {
98
98
  "data-ncm-type": block.type,
99
99
  "data-block-id": block.id,
100
100
  "data-ncm-latex-display": "",
101
- className: cn("overflow-x-auto rounded-lg border border-border bg-muted p-4 font-mono text-sm", className),
101
+ className: cn("overflow-x-auto overflow-y-hidden rounded-lg border border-border bg-muted p-4 font-mono text-sm", className),
102
102
  children: /* @__PURE__ */ jsx("code", { children: block.content })
103
103
  }
104
104
  );
@@ -61,7 +61,7 @@ function MathBlock({ block, className }) {
61
61
  "data-ncm-type": block.type,
62
62
  "data-block-id": block.id,
63
63
  "data-ncm-math": "",
64
- className: cn("overflow-x-auto", className),
64
+ className: cn("overflow-x-auto overflow-y-hidden", className),
65
65
  dangerouslySetInnerHTML: { __html: html }
66
66
  }
67
67
  );
@@ -77,7 +77,8 @@ function MathBlock({ block, className }) {
77
77
  "data-block-id": block.id,
78
78
  "data-ncm-math": "",
79
79
  className: cn(
80
- "overflow-x-auto rounded-lg border border-border bg-muted p-4 font-mono text-sm",
80
+ // `overflow-y-hidden` pairs with `overflow-x-auto` on purpose see the note in `lib/defaults.ts`.
81
+ "overflow-x-auto overflow-y-hidden rounded-lg border border-border bg-muted p-4 font-mono text-sm",
81
82
  className
82
83
  ),
83
84
  children: /* @__PURE__ */ jsx("code", { children: block.content })
@@ -18,7 +18,8 @@ function MermaidBlock({ block, className }) {
18
18
  "data-ncm-mermaid": "",
19
19
  "data-ncm-diagram-type": block.diagramType,
20
20
  className: cn(
21
- "overflow-x-auto rounded-lg border border-border bg-muted p-4 font-mono text-sm",
21
+ // `overflow-y-hidden` pairs with `overflow-x-auto` on purpose see the note in `lib/defaults.ts`.
22
+ "overflow-x-auto overflow-y-hidden rounded-lg border border-border bg-muted p-4 font-mono text-sm",
22
23
  className
23
24
  ),
24
25
  children: /* @__PURE__ */ jsx("code", { children: block.content })