mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 16:02:26 +00:00
- 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.
11 lines
541 B
JavaScript
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');
|
|
});
|