File tree Expand file tree Collapse file tree 4 files changed +13
-15
lines changed
components/Loader/Analysis
pages/BundleSize/components
core/src/rules/rules/duplicate-package Expand file tree Collapse file tree 4 files changed +13
-15
lines changed Original file line number Diff line number Diff line change @@ -105,10 +105,7 @@ export const LoaderFiles: React.FC<{
105
105
} }
106
106
>
107
107
< div className = { styles . keywords } >
108
- < Keyword
109
- text = { basename . replace ( / \[ .* ?\] / g, '' ) }
110
- keyword = { props . filename }
111
- />
108
+ < Keyword text = { basename . replace ( / \[ .* ?\] / g, '' ) } keyword = { '' } />
112
109
</ div >
113
110
< div className = { styles . dividerDiv } >
114
111
< Divider className = { styles . divider } dashed />
@@ -209,7 +206,7 @@ export const LoaderFiles: React.FC<{
209
206
) ;
210
207
} ,
211
208
dirTitle ( _dir , defaultTitle ) {
212
- return < Keyword text = { defaultTitle } keyword = { props . filename } /> ;
209
+ return < Keyword text = { defaultTitle } keyword = { '' } /> ;
213
210
} ,
214
211
} ) ;
215
212
} , [ filteredFiles ] ) ;
Original file line number Diff line number Diff line change @@ -396,7 +396,7 @@ export const AssetDetail: React.FC<{
396
396
< div className = { styles [ 'bundle-tree' ] } >
397
397
< div className = { styles . box } >
398
398
< div className = { styles . keywords } >
399
- < Keyword ellipsis text = { basename } keyword = { moduleKeyword } />
399
+ < Keyword ellipsis text = { basename } keyword = { '' } />
400
400
</ div >
401
401
402
402
< div className = { styles . dividerDiv } >
@@ -563,7 +563,7 @@ export const AssetDetail: React.FC<{
563
563
< Card
564
564
className = { styles . bundle }
565
565
title = { `Modules of "${ asset . path } "` }
566
- bodyStyle = { { overflow : 'scroll' , height } }
566
+ bodyStyle = { { minHeight : height } }
567
567
size = "small"
568
568
>
569
569
{ includeModules . length ? (
@@ -610,7 +610,8 @@ export const AssetDetail: React.FC<{
610
610
}
611
611
treeData = { fileStructures as AntdDataNode [ ] }
612
612
rootStyle = { {
613
- minHeight : '800px' ,
613
+ maxHeight : '500px' ,
614
+ overflow : 'auto' ,
614
615
border : '1px solid rgba(235, 237, 241)' ,
615
616
padding : '14px 20px' ,
616
617
} }
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ import { GraphType } from '../constants';
38
38
39
39
const { Option } = Select ;
40
40
41
- const cardBodyHeight = 410 ;
41
+ const cardBodyHeight = 600 ;
42
42
43
43
const largeCardBodyHeight = 800 ;
44
44
@@ -241,11 +241,7 @@ export const WebpackModulesOverallBase: React.FC<
241
241
setAssetPath ( path ) ;
242
242
} }
243
243
>
244
- < Keyword
245
- text = { basename }
246
- keyword = { inputAssetName }
247
- className = { styles . fileText }
248
- />
244
+ < Keyword text = { basename } keyword = { '' } className = { styles . fileText } />
249
245
< Space size = "small" className = { styles . assetsTag } >
250
246
< Divider type = "vertical" />
251
247
< Typography . Text style = { { color : '#4FD233' } } >
Original file line number Diff line number Diff line change @@ -41,7 +41,11 @@ export const rule = defineRule<typeof title, Config>(() => ({
41
41
gt ( _packA . version , _packB . version ) ? 1 : - 1 ,
42
42
) ;
43
43
} )
44
- . filter ( ( pkgs ) => pkgs . length > 1 ) ;
44
+ . filter (
45
+ ( pkgs ) =>
46
+ pkgs . length > 1 &&
47
+ pkgs . filter ( ( pkg ) => pkg . getSize ( ) . parsedSize > 0 ) . length > 1 ,
48
+ ) ;
45
49
46
50
for ( const pkg of packages ) {
47
51
const message = getErrorMsg ( pkg , root ) ;
You can’t perform that action at this time.
0 commit comments