mentionwell 1.4.1 → 1.4.2

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.
@@ -472,19 +472,26 @@
472
472
  under a sticky sidebar CTA). `display: block` is what makes overflow-x
473
473
  actually work — `display: table` ignores `overflow` on itself. */
474
474
  .wb-article-host table {
475
- display: block;
475
+ /* Real table layout so cells stretch to fill the container width.
476
+ `display: block` (the previous attempt at making the table scroll
477
+ horizontally) caused the inner table layout to collapse to its
478
+ content width, leaving a large empty band on the right side of the
479
+ bordered region. We rely on `table-layout: auto` + `width: 100%`
480
+ so columns fill the article column instead. Mobile horizontal
481
+ scroll is handled below by giving the table its own scroll wrapper
482
+ via the `display` switch only at narrow breakpoints. */
483
+ display: table;
476
484
  width: 100%;
477
485
  max-width: 100%;
478
- overflow-x: auto;
479
- -webkit-overflow-scrolling: touch;
486
+ table-layout: auto;
480
487
  border-collapse: collapse;
481
488
  margin: 2rem 0;
482
489
  font-size: 0.95rem;
483
490
  background: var(--wb-paper);
484
- /* Stronger border so the table is visible against paper-tone page bgs. */
485
491
  border: 1px solid #B7AEA1;
486
492
  border-radius: var(--wb-radius-sm);
487
493
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
494
+ overflow: hidden;
488
495
  }
489
496
  /* Forest-green header with cream text. !important guards defeat host
490
497
  themes that set a generic cream/light bg on `.blog-content th` and
@@ -522,7 +529,14 @@
522
529
  /* Mobile: tighten table cells. (Horizontal scroll is already enabled at
523
530
  all breakpoints in the base table rule above.) */
524
531
  @media (max-width: 640px) {
532
+ /* On narrow screens, allow the table to scroll horizontally inside the
533
+ article column rather than overflowing the page. `display: block` here
534
+ lets `overflow-x: auto` actually take effect (which it can't on a
535
+ `display: table` element). */
525
536
  .wb-article-host table {
537
+ display: block;
538
+ overflow-x: auto;
539
+ -webkit-overflow-scrolling: touch;
526
540
  font-size: 0.88rem;
527
541
  }
528
542
  .wb-article-host thead th, .wb-article-host tbody td {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mentionwell",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "Destination-side API reader + styles for Mentionwell-generated blog posts.",
5
5
  "license": "MIT",
6
6
  "author": "Isaac Horowitz <horowitzisaac@gmail.com>",
@@ -49,6 +49,6 @@
49
49
  "access": "public"
50
50
  },
51
51
  "devDependencies": {
52
- "typescript": "^5.5.0"
52
+ "typescript": "^6.0.3"
53
53
  }
54
54
  }