合并泥点弹窗透明修复
# Conflicts: # src/components/common/PublishShareModal.test.tsx # src/components/common/PublishShareModal.tsx # src/index.test.ts
This commit is contained in:
@@ -126,6 +126,29 @@ describe('index stylesheet unread dots', () => {
|
||||
expect(block).toContain('transform: scale(0.88);');
|
||||
expect(block).toContain('transform-origin: center;');
|
||||
});
|
||||
|
||||
it('keeps the creation shelf point incentive action button compact', () => {
|
||||
const css = readIndexCss();
|
||||
const surfaceBlock = getCssBlock(
|
||||
css,
|
||||
'.creation-work-card-incentive__button.platform-button',
|
||||
);
|
||||
const compactButtonBlock = getCssBlock(
|
||||
css,
|
||||
'.creation-work-card-incentive__button.platform-button {\n display: inline-flex;',
|
||||
);
|
||||
const mobileQueryIndex = css.indexOf('@media (max-width: 639px)');
|
||||
const mobileSelectorIndex = css.indexOf(
|
||||
'.creation-work-card-incentive__button.platform-button',
|
||||
mobileQueryIndex,
|
||||
);
|
||||
|
||||
expect(surfaceBlock).toContain('border: 1px solid');
|
||||
expect(surfaceBlock).toContain('background: color-mix(');
|
||||
expect(compactButtonBlock).toContain('min-height: 2.55rem;');
|
||||
expect(compactButtonBlock).toContain('font-size: 0.68rem;');
|
||||
expect(mobileSelectorIndex).toBeGreaterThanOrEqual(0);
|
||||
});
|
||||
});
|
||||
|
||||
describe('index stylesheet draft mobile cards', () => {
|
||||
|
||||
Reference in New Issue
Block a user