Skip to content

Commit

Permalink
fix: 修改items样式
Browse files Browse the repository at this point in the history
  • Loading branch information
tiantiancheng committed Feb 11, 2025
1 parent 779559b commit abd66e7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/amis-ui/scss/components/_list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
border: var(--List-borderWidth) solid var(--List-borderColor);
background: var(--List-bg);
margin-bottom: var(--gap-sm);
position: relative;
margin-right: px2rem(30px);
// position: relative;
margin-right: px2rem(15px);
}

&-toolbar {
Expand Down
10 changes: 8 additions & 2 deletions packages/amis/__tests__/renderers/BarCode.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,14 @@ test('Renderer:bar-code', async () => {
makeEnv({})
)
);
await waitFor(() =>
expect(container.querySelector('.cxd-BarCode')).toBeInTheDocument()

// 使用更长的超时时间和更可靠的重试机制
await waitFor(
() => expect(container.querySelector('.cxd-BarCode')).toBeInTheDocument(),
{
timeout: 5000, // 增加超时时间到5秒
interval: 100 // 每100ms检查一次
}
);

expect(container).toMatchSnapshot();
Expand Down

0 comments on commit abd66e7

Please sign in to comment.