Merge pull request #767 from virgosgod-maker/fix/issue-764

This commit is contained in:
Syngnat
2026-07-28 19:31:00 +08:00
2 changed files with 17 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import { describe, expect, it } from 'vitest';
import { readV2ThemeCss } from '../test/readV2ThemeCss';
describe('empty workbench layout', () => {
it('keeps hero actions from overlapping recent cards in small windows', () => {
const css = readV2ThemeCss();
const heroSelector = 'body[data-ui-version="v2"] .gn-v2-empty-hero {';
const firstHeroRule = css.indexOf(heroSelector);
const heroRule = css.slice(
css.indexOf(heroSelector, firstHeroRule + heroSelector.length),
css.indexOf('body[data-ui-version="v2"] .gn-v2-empty-eyebrow {'),
);
expect(heroRule).toContain('flex: 0 0 auto;');
});
});

View File

@@ -3342,6 +3342,7 @@ body[data-ui-version="v2"] .gn-v2-empty-hero {
}
body[data-ui-version="v2"] .gn-v2-empty-hero {
flex: 0 0 auto;
display: flex;
flex-direction: column;
justify-content: flex-start;