Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion packages/x/components/think/__tests__/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ describe('Think Component', () => {
await waitFakeTimer();
// content should still be in DOM with leavedClassName
expect(container.querySelector('.ant-think-content')).toBeTruthy();
expect(container.querySelector('.ant-think-content-hidden')).toBeTruthy();
const hiddenContent = container.querySelector('.ant-think-content-hidden');
expect(hiddenContent).toBeTruthy();
expect(window.getComputedStyle(hiddenContent!).display).toBe('none');
});
});
3 changes: 3 additions & 0 deletions packages/x/components/think/style/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ const genThinkStyle: GenerateStyle<ThinkToken> = (token) => {
paddingInlineStart: paddingSM,
borderInlineStart: `${calc(lineWidth).mul(2).equal()} solid ${colorBorder}`,
},
[`${componentCls}-content-hidden`]: {
display: 'none',
},
[`&${componentCls}-rtl`]: {
direction: 'rtl',
},
Expand Down