Skip to content

Commit 28b85f0

Browse files
committed
fix: width for select field
1 parent 7b20c80 commit 28b85f0

File tree

3 files changed

+39
-38
lines changed

3 files changed

+39
-38
lines changed

ui/src/components/ExecutionLogs/index.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,7 @@
4040
margin: 0 auto;
4141
}
4242
}
43+
44+
.select-container {
45+
margin-bottom: 8px;
46+
}

ui/src/components/ExecutionLogs/index.tsx

Lines changed: 33 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -286,46 +286,43 @@ const ExecutionLogs = ({ projectId }: { projectId: string }) => {
286286
onSearchChangeEvent={(value: string) => setSearchText(value)}
287287
withExportCta={{
288288
component: (
289-
<Select
290-
version="v2"
291-
options={stackIds}
292-
value={selectedStackName}
293-
placeholder={
294-
selectedStackName === ''
295-
? stackIds.length > 0
296-
? 'Select Stack Id'
297-
: 'No stack created'
298-
: selectedStackName
299-
}
300-
onChange={(s: DropdownOption) => {
301-
setSelectedStackId(s.value);
302-
setSelectedStackName(s.label);
303-
setSearchText('');
304-
}}
305-
/>
289+
<div className="select-container">
290+
<Select
291+
width='250px'
292+
maxWidth='300px'
293+
version="v2"
294+
options={stackIds}
295+
value={selectedStackName}
296+
placeholder={
297+
selectedStackName === ''
298+
? stackIds.length > 0
299+
? 'Select Stack Id'
300+
: 'No stack created'
301+
: selectedStackName
302+
}
303+
onChange={(s: DropdownOption) => {
304+
setSelectedStackId(s.value);
305+
setSelectedStackName(s.label);
306+
setSearchText('');
307+
}}
308+
/>
309+
</div>
306310
),
307311
showExportCta: true
308312
}}
309313
customEmptyState={
310-
searchText === '' ? (
311-
<EmptyState
312-
forPage="list"
313-
heading="No Logs"
314-
description="Try Executing the Migration."
315-
moduleIcon="NoDataEmptyState"
316-
type="secondary"
317-
className="custom-empty-state"
318-
/>
319-
) : (
320-
<EmptyState
321-
forPage="list"
322-
heading="No matching results found!"
323-
description="Try changing the search query to find what you are looking for."
324-
moduleIcon="NoSearchResult"
325-
type="secondary"
326-
className="custom-empty-state"
327-
/>
328-
)
314+
<EmptyState
315+
forPage="list"
316+
heading={searchText === '' ? 'No Logs' : 'No matching results found!'}
317+
description={
318+
searchText === ''
319+
? 'Try Executing the Migration.'
320+
: 'Try changing the search query to find what you are looking for.'
321+
}
322+
moduleIcon={searchText === '' ? 'NoDataEmptyState' : 'NoSearchResult'}
323+
type="secondary"
324+
className="custom-empty-state"
325+
/>
329326
}
330327
/>
331328
</div>

upload-api/src/config/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export default {
22
plan: {
33
dropdown: { optionLimit: 100 }
44
},
5-
cmsType: 'sitecore',
5+
cmsType: 'contentful',
66
isLocalPath: true,
77
awsData: {
88
awsRegion: 'us-east-2',
@@ -13,5 +13,5 @@ export default {
1313
bucketKey: ''
1414
},
1515
// localPath: '/Users/sayali.joshi/Downloads/contentfulDummyEmbedData.json' //package 45.zip'
16-
localPath: '/Users/yash.shinde/Documents/Migration/update-script/package 45.zip'
16+
localPath: '/Users/yash.shinde/Downloads/contentful-export-qkbsabj2eulh-master-2024-04-30T15-17-15.json'
1717
};

0 commit comments

Comments
 (0)