Files
bitvid/tests/unit/embed-accent.test.mjs
T
google-labs-jules[bot] a708883abb fix(embed): video sizing letterbox and logo accent
- Changed embed video sizing to `object-fit: cover` and `width: 100%` to eliminate black bars/letterboxing.
- Updated `embed.html` and `css/tailwind.source.css` to enforce these styles on `.video-modal__media`, `.video-modal__video`, and `#embedVideo`.
- Wired the embed logo accent color to use the instance configuration (`THEME_ACCENT_OVERRIDES` from `config/instance-config.js`) via a `--bitvid-accent` CSS variable injected in `js/embed.js`.
- Added unit and visual tests to verify styling and configuration logic.
2026-01-24 23:57:29 +00:00

11 lines
541 B
JavaScript

import { test } from 'node:test';
import assert from 'node:assert/strict';
import { THEME_ACCENT_OVERRIDES } from '../../config/instance-config.js';
test('embed accent color configuration', () => {
// Verify the config is readable and has the expected structure
assert.ok(THEME_ACCENT_OVERRIDES, 'THEME_ACCENT_OVERRIDES should be defined');
assert.ok(THEME_ACCENT_OVERRIDES.light, 'light theme overrides should be defined');
assert.equal(THEME_ACCENT_OVERRIDES.light.accent, '#540011', 'accent color should match requirement');
});