Skip to content

Commit 07544cb

Browse files
puikinshclaude
andcommitted
Release 0.6.1: fix the RTL demo page and mailbox row overflow
Two defects found by a live audit of adminlte.io/themes/next-react, both in demo/ — src/ is untouched and dist/ is byte-identical to 0.6.0, hence a patch rather than 0.7.0. RtlStyles hardcoded href="/css/adminlte.rtl.css", which resolves against the domain root, so under the EXPORT=true subpath build the request 404'd and the page ran dir="rtl" against LTR-compiled AdminLTE CSS: a blank viewport behind ~10,000px of horizontal overflow (scrollWidth 11440 in a 1440px window). The href now goes through the demo's existing withBase() helper, so it stays /css/adminlte.rtl.css at the domain root (next dev) and becomes /themes/next-react/css/adminlte.rtl.css in the export. The file was always deployed correctly; only the link was wrong. The mailbox inbox row link is itself a flex item, so its min-width computed to auto and it would not shrink below its content — the inner span.text-truncate never truncated and subject text ran past the card edge (.list-group scrollWidth 1168 vs clientWidth 857). The row link and its elastic middle span now carry min-width: 0, matching core's src/html/pages/mailbox/inbox.astro. Now 857/857 on all eight rows. The demo's apexcharts CSS pin was already corrected to 6.10.0 in 0.6.0; the 6.8.0 the audit saw is pre-0.6.0 output that has not been redeployed. Re-checked every jsDelivr pin against package.json: no mismatch remains. Verified: library build, type-check, lint (0 errors, 13 pre-existing warnings), 19 unit tests, demo type-check, the EXPORT=true subpath export (66 static pages), all 67 Playwright route-smoke + a11y tests, plus a Playwright pass over the built export served at the real /themes/next-react/ subpath and against next dev at the domain root. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent b969115 commit 07544cb

4 files changed

Lines changed: 36 additions & 10 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,19 @@ All notable changes to **@adminlte/react** are documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.6.1] - 2026-08-19
9+
10+
### Fixed
11+
12+
- **The RTL layout page rendered blank under the subpath deploy.** `RtlStyles` hardcoded `href="/css/adminlte.rtl.css"`, which resolves against the *domain root* — so on [adminlte.io/themes/next-react](https://adminlte.io/themes/next-react/) (the `EXPORT=true` build, base path `/themes/next-react`) the request 404'd and the page ran `dir="rtl"` against LTR-compiled AdminLTE CSS: the shell was pushed off-canvas, leaving an empty viewport behind ~10,000 px of horizontal overflow (`document.scrollWidth` **11440** in a 1440 px window). The href now goes through the demo's existing `withBase()` helper — the same one `SubpathLinks` and the page data already use — so it stays `/css/adminlte.rtl.css` at the domain root (local `next dev`) and becomes `/themes/next-react/css/adminlte.rtl.css` in the export. The stylesheet itself was always deployed correctly; only the link was wrong. Verified in **both** modes against real builds: no 404, 1855 rules parsed, `dir="rtl"` applied, `scrollWidth === clientWidth === 1440`.
13+
- **Mailbox inbox rows overflowed their card.** The row link (`a.flex-grow-1.d-flex.flex-column.flex-md-row`) is itself a flex item, so its `min-width` computed to `auto` and it refused to shrink below its content — the `span.text-truncate` inside it never truncated and the subject text ran past the card edge instead. Both the row link and its elastic middle span now carry `min-width: 0`, matching the core HTML demo (`src/html/pages/mailbox/inbox.astro`). Measured on `/mailbox/inbox`: `.list-group` **1168 / 857** (311 px of clipped text spilling out of the card) → **857 / 857** across all eight rows, with the truncation ellipsis doing its job.
14+
15+
### Notes
16+
17+
- **Demo-only release.** `src/` is untouched and the published `dist/` is byte-identical to 0.6.0 — nothing an npm consumer imports changed, which is why this is a patch and not 0.7.0. It gets a version at all because the demo is a shipped artifact of this repo and its RTL page was unusable; the fix reaches people when the demo is **redeployed**, not when the package is published, so publishing 0.6.1 to npm is optional.
18+
- **The demo's CDN pins were re-checked against `package.json`: no mismatch remains.** apexcharts 6.10.0, tabulator-tables 6.5.2, tom-select 2.6.2, quill 2.0.3, flatpickr 4.6.13 and jsvectormap 1.7.0 all match their installed versions; Bootstrap 5.3.8 matches `admin-lte`'s peer range; Bootstrap Icons 1.13.1, OverlayScrollbars 2.16.0, FullCalendar 7.0.2 and Source Sans 3 5.3.0 have no `package.json` counterpart (CDN-only) and are each at their latest release. The `apexcharts@6.8.0` CSS still visible on the live demo is pre-0.6.0 output — that pin was corrected in 0.6.0 and simply has not been redeployed yet.
19+
- Verified: library build, type-check, lint (0 errors, 13 pre-existing warnings) and 19 unit tests; demo type-check and the `EXPORT=true` subpath export (66 static pages); all 67 Playwright route-smoke + a11y tests; plus a Playwright pass over the built export served at the real `/themes/next-react/` subpath, covering both fixes above.
20+
821
## [0.6.0] - 2026-08-19
922

1023
### Changed
@@ -227,6 +240,7 @@ Next.js App Router and React Server Components.
227240
- Heavy third-party libraries are never bundled eagerly — they load via dynamic
228241
`import()` inside the components that use them.
229242

243+
[0.6.1]: https://github.com/ColorlibHQ/adminlte-react/compare/v0.6.0...v0.6.1
230244
[0.6.0]: https://github.com/ColorlibHQ/adminlte-react/compare/v0.5.0...v0.6.0
231245
[0.5.0]: https://github.com/ColorlibHQ/adminlte-react/compare/v0.4.0...v0.5.0
232246
[0.4.0]: https://github.com/ColorlibHQ/adminlte-react/compare/v0.3.0...v0.4.0

‎demo/app/(dashboard)/mailbox/inbox/page.tsx‎

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -181,11 +181,12 @@ export default function Page() {
181181
<a
182182
href="/mailbox/read"
183183
className="flex-grow-1 d-flex flex-column flex-md-row gap-md-3 text-decoration-none text-body"
184+
style={{ minWidth: 0 }}
184185
>
185186
<span className="text-truncate" style={{ minWidth: '9rem' }}>
186187
Olivia Bennett
187188
</span>
188-
<span className="flex-grow-1 text-truncate">
189+
<span className="flex-grow-1 text-truncate" style={{ minWidth: 0 }}>
189190
<span className="badge text-bg-primary me-2"> &middot; </span>
190191
Re: design system v2.4 sign-off
191192
<span className="fw-normal text-secondary">
@@ -215,12 +216,13 @@ export default function Page() {
215216
<a
216217
href="/mailbox/read"
217218
className="flex-grow-1 d-flex flex-column flex-md-row gap-md-3 text-decoration-none text-body"
219+
style={{ minWidth: 0 }}
218220
>
219221
<span className="text-truncate" style={{ minWidth: '9rem' }}>
220222
{' '}
221223
GitHub{' '}
222224
</span>
223-
<span className="flex-grow-1 text-truncate">
225+
<span className="flex-grow-1 text-truncate" style={{ minWidth: 0 }}>
224226
<span className="badge text-bg-secondary me-2"> &middot; </span>
225227
[fullcalendar/fullcalendar] PR #6912 merged
226228
<span className="fw-normal text-secondary">
@@ -250,12 +252,13 @@ export default function Page() {
250252
<a
251253
href="/mailbox/read"
252254
className="flex-grow-1 d-flex flex-column flex-md-row gap-md-3 text-decoration-none text-body"
255+
style={{ minWidth: 0 }}
253256
>
254257
<span className="text-truncate" style={{ minWidth: '9rem' }}>
255258
{' '}
256259
Stripe{' '}
257260
</span>
258-
<span className="flex-grow-1 text-truncate">
261+
<span className="flex-grow-1 text-truncate" style={{ minWidth: 0 }}>
259262
<span className="badge text-bg-success me-2"> &middot; </span>
260263
Your May invoice is ready
261264
<span className="fw-normal text-secondary">
@@ -285,12 +288,13 @@ export default function Page() {
285288
<a
286289
href="/mailbox/read"
287290
className="flex-grow-1 d-flex flex-column flex-md-row gap-md-3 text-decoration-none text-body"
291+
style={{ minWidth: 0 }}
288292
>
289293
<span className="text-truncate" style={{ minWidth: '9rem' }}>
290294
{' '}
291295
Marcus Reyes{' '}
292296
</span>
293-
<span className="flex-grow-1 text-truncate">
297+
<span className="flex-grow-1 text-truncate" style={{ minWidth: 0 }}>
294298
<span className="badge text-bg-info me-2"> &middot; </span>
295299
Lunch on Thursday?
296300
<span className="fw-normal text-secondary">
@@ -320,12 +324,13 @@ export default function Page() {
320324
<a
321325
href="/mailbox/read"
322326
className="flex-grow-1 d-flex flex-column flex-md-row gap-md-3 text-decoration-none text-body"
327+
style={{ minWidth: 0 }}
323328
>
324329
<span className="text-truncate" style={{ minWidth: '9rem' }}>
325330
{' '}
326331
Linear{' '}
327332
</span>
328-
<span className="flex-grow-1 text-truncate">
333+
<span className="flex-grow-1 text-truncate" style={{ minWidth: 0 }}>
329334
<span className="badge text-bg-warning me-2"> &middot; </span>
330335
[ADM-441] Calendar drag-and-drop not working on Safari iOS
331336
<span className="fw-normal text-secondary">
@@ -355,12 +360,13 @@ export default function Page() {
355360
<a
356361
href="/mailbox/read"
357362
className="flex-grow-1 d-flex flex-column flex-md-row gap-md-3 text-decoration-none text-body"
363+
style={{ minWidth: 0 }}
358364
>
359365
<span className="text-truncate" style={{ minWidth: '9rem' }}>
360366
{' '}
361367
Vercel{' '}
362368
</span>
363-
<span className="flex-grow-1 text-truncate">
369+
<span className="flex-grow-1 text-truncate" style={{ minWidth: 0 }}>
364370
<span className="badge text-bg-success me-2"> &middot; </span>
365371
Deployment succeeded — production
366372
<span className="fw-normal text-secondary">
@@ -390,12 +396,13 @@ export default function Page() {
390396
<a
391397
href="/mailbox/read"
392398
className="flex-grow-1 d-flex flex-column flex-md-row gap-md-3 text-decoration-none text-body"
399+
style={{ minWidth: 0 }}
393400
>
394401
<span className="text-truncate" style={{ minWidth: '9rem' }}>
395402
{' '}
396403
Sara Khan{' '}
397404
</span>
398-
<span className="flex-grow-1 text-truncate">
405+
<span className="flex-grow-1 text-truncate" style={{ minWidth: 0 }}>
399406
<span className="badge text-bg-primary me-2"> &middot; </span>
400407
Customer interview notes — Acme Corp
401408
<span className="fw-normal text-secondary">
@@ -426,12 +433,13 @@ export default function Page() {
426433
<a
427434
href="/mailbox/read"
428435
className="flex-grow-1 d-flex flex-column flex-md-row gap-md-3 text-decoration-none text-body"
436+
style={{ minWidth: 0 }}
429437
>
430438
<span className="text-truncate" style={{ minWidth: '9rem' }}>
431439
{' '}
432440
AWS{' '}
433441
</span>
434-
<span className="flex-grow-1 text-truncate">
442+
<span className="flex-grow-1 text-truncate" style={{ minWidth: 0 }}>
435443
<span className="badge text-bg-danger me-2"> &middot; </span>
436444
Your monthly bill summary
437445
<span className="fw-normal text-secondary">

‎demo/components/rtl-styles.tsx‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
'use client'
22

33
import { useEffect } from 'react'
4+
import { withBase } from '@/lib/base'
45

5-
const RTL_HREF = '/css/adminlte.rtl.css'
6+
// Resolved against the deploy base path: files under public/ are served from the
7+
// base, not the domain root, so a hardcoded "/css/..." 404s in the subpath export
8+
// (EXPORT=true -> /themes/next-react). withBase is a no-op at the root (dev).
9+
const RTL_HREF = withBase('/css/adminlte.rtl.css')
610

711
/**
812
* Loads AdminLTE's dedicated RTL stylesheet for the RTL demo page (the same

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@adminlte/react",
3-
"version": "0.6.0",
3+
"version": "0.6.1",
44
"description": "AdminLTE 4 React/Next.js component library",
55
"license": "MIT",
66
"type": "module",

0 commit comments

Comments
 (0)