Skip to content

Commit 8016c7f

Browse files
authored
chore: fix Spin usage in antd 6.3.0 (#2647)
* chore: adjust Spin usage for antd 6.3.0 * remove blur mask override as it is now off by default
1 parent befa3e2 commit 8016c7f

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

app/common/renderer/assets/stylesheets/main.css

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ body::-webkit-scrollbar-corner {
2626
height: 100%;
2727
}
2828

29-
#root .ant-spin-nested-loading > div > .ant-spin {
30-
max-height: initial;
31-
}
32-
3329
.window {
3430
background-color: #cde4f5 !important;
3531
width: 100%;
@@ -40,7 +36,7 @@ body::-webkit-scrollbar-corner {
4036
background-color: #662d91 !important;
4137
}
4238

43-
.ant-spin-nested-loading,
39+
.ant-spin,
4440
.ant-spin-container {
4541
height: 100%;
4642
}

app/common/renderer/components/SessionBuilder/SessionBuilder.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ const Session = (props) => {
117117
]);
118118

119119
return [
120-
<Spin spinning={!!newSessionLoading} key="main">
120+
<Spin size="large" spinning={!!newSessionLoading} key="main">
121121
<div className={styles.sessionContainer}>
122122
<div className={styles.sessionHeader}>
123123
<Tabs

app/common/renderer/components/SessionInspector/Header/LocatorTestModal.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ const LocatorTestModal = (props) => {
3030
open={isLocatorTestModalVisible}
3131
title={t('Search for element')}
3232
onCancel={onCancel}
33-
mask={{blur: false}}
3433
footer={
3534
<>
3635
{locatedElements && (

app/common/renderer/components/SessionInspector/SourceTab/SelectedElement/SelectedElement.jsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ import SelectedElementLocatorsTable from './SelectedElementLocatorsTable.jsx';
1111
import SnapshotMaxDepthReachedMessage from './SnapshotMaxDepthReachedMessage.jsx';
1212
import XpathNotRecommendedMessage from './XpathNotRecommendedMessage.jsx';
1313

14+
/**
15+
* Placeholder shown for the element ID while the element search is in progress.
16+
*/
17+
const ElementIdLoader = () => <Spin styles={{root: {width: 20}}}> </Spin>;
18+
1419
/**
1520
* The full panel for the selected element.
1621
*/
@@ -38,7 +43,7 @@ const SelectedElement = (props) => {
3843
}));
3944
elementAttributesData.unshift({
4045
key: 'elementId',
41-
value: selectedElementSearchInProgress ? <Spin /> : selectedElementId,
46+
value: selectedElementSearchInProgress ? <ElementIdLoader /> : selectedElementId,
4247
name: 'elementId',
4348
});
4449

0 commit comments

Comments
 (0)