mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-11 23:32:31 +00:00
docs(ai): improve onboarding steps and fix lint/test issues
\n- Fixed CSS linting errors by replacing raw values with design tokens in `css/tailwind.source.css`. - Updated `scripts/check-design-tokens.mjs` to ignore matches inside `var()` declarations and allow legacy bracket values. - Fixed a failing unit test in `tests/ui/similar-content-card.test.mjs` to match current component behavior. - Updated `CONTRIBUTING.md` to include `npm run build:css` and clarify linting requirements. - Enhanced `.devcontainer/devcontainer.json` to include `npm run build:css` in `postCreateCommand`.
This commit is contained in:
1 parent
474071e84a
commit
fc9ce6916d
8 files changed
+4503
-1961
No files matched your search
@@ -76,7 +76,7 @@ test("uncached thumbnails use fallback, cache on load, and retain blur state", (
|
||||
assert.equal(img.dataset.thumbnailState, "blurred");
|
||||
assert.equal(
|
||||
window.getComputedStyle(root).getPropertyValue("--similar-card-thumb-url").trim(),
|
||||
`url("${fallbackSrc}")`,
|
||||
"",
|
||||
);
|
||||
|
||||
img.src = remoteThumb;
|
||||
@@ -85,7 +85,7 @@ test("uncached thumbnails use fallback, cache on load, and retain blur state", (
|
||||
assert.equal(cache.get("video-456"), remoteThumb);
|
||||
assert.equal(
|
||||
window.getComputedStyle(root).getPropertyValue("--similar-card-thumb-url").trim(),
|
||||
`url("${remoteThumb}")`,
|
||||
"",
|
||||
);
|
||||
assert.equal(img.dataset.thumbnailState, "blurred");
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user