File tree 2 files changed +7
-5
lines changed
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ function MeunItemView(props: { path?: string; filepath?: string; size?: number }
60
60
{ ...menuProps }
61
61
text = { props . filepath ! . replace ( / ^ \/ / , '' ) }
62
62
/>
63
- ) ,
63
+ ) ,
64
64
// eslint-disable-next-line react-hooks/exhaustive-deps
65
65
[ props . path , props . size , props . filepath ] ,
66
66
) ;
@@ -74,7 +74,7 @@ export default function DirectoryTrees() {
74
74
pkgname : global . pkgname ,
75
75
} ) ) ;
76
76
77
- const pathname = location . pathname . replace ( new RegExp ( `/pkg/${ pkgname } /file` ) , '' )
77
+ const pathname = location . pathname . replace ( new RegExp ( `/pkg/${ pkgname } /file` ) , '' ) ;
78
78
79
79
function renderMenuItem ( data : Files [ ] = [ ] , menuItems : any = [ ] ) {
80
80
data . forEach ( ( item , idx ) => {
@@ -85,7 +85,7 @@ export default function DirectoryTrees() {
85
85
key = { idx }
86
86
icon = "folder"
87
87
overlayProps = { {
88
- isOpen : collapse
88
+ isOpen : collapse ,
89
89
} }
90
90
style = { { color : '#1d64ce' } }
91
91
text = { item . path . replace ( / ^ \/ / , '' ) . replace ( / ( .+ ?) .\/ / g, '' ) }
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ export default function Preview() {
56
56
size = "small"
57
57
type = "link"
58
58
onClick = { ( ) => dispatch . global . update ( { showSearch : true } ) }
59
- style = { { fontSize : 21 } }
59
+ style = { { fontSize : 21 , whiteSpace : 'nowrap' } }
60
60
>
61
61
{ Info && Info . name ? `${ Info . name } @${ Info . version } ` : path . pkgName }
62
62
</ Button >
@@ -128,7 +128,9 @@ export default function Preview() {
128
128
{ Info . description && (
129
129
< Fragment >
130
130
< Divider type = "vertical" />
131
- < span title = { Info . description } > { Info . description } </ span >
131
+ < span title = { Info . description } style = { { flex : 1 , whiteSpace : 'nowrap' , overflow : 'hidden' } } >
132
+ { Info . description }
133
+ </ span >
132
134
</ Fragment >
133
135
) }
134
136
</ Fragment >
You can’t perform that action at this time.
1 commit comments
vercel[bot] commentedon Feb 28, 2022
Successfully deployed to the following URLs: