feat: rudimentary menu working now

This commit is contained in:
2026-02-21 20:49:10 +01:00
parent 76c3a8368e
commit 0860dbe557
11 changed files with 724 additions and 352 deletions

View File

@@ -0,0 +1,22 @@
import { describe, expect, it } from 'vitest';
import * as fs from 'node:fs';
import * as path from 'node:path';
describe('MenuEditorView styles', () => {
const cssPath = path.resolve(
__dirname,
'../../../src/renderer/components/MenuEditorView/MenuEditorView.css'
);
it('makes page selector results scrollable with bounded height', () => {
const css = fs.readFileSync(cssPath, 'utf8');
expect(css).toMatch(/\.menu-editor-picker-list\s*\{[^}]*max-height:\s*[^;]+;[^}]*overflow-y:\s*auto;[^}]*\}/s);
});
it('bounds the inline selector area so it does not spill beyond the editor viewport', () => {
const css = fs.readFileSync(cssPath, 'utf8');
expect(css).toMatch(/\.menu-editor-inline-search\s*\{[^}]*max-height:\s*[^;]+;[^}]*overflow:\s*hidden;[^}]*\}/s);
});
});