@@ -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 >
0 commit comments