@@ -8,17 +8,30 @@ interface WindowSummaryProps {
88 onRandomize ?: ( ) => void ;
99}
1010
11- // 概要项组件
12- function SummaryItem ( { label, value, mono } : { label : string ; value : string ; mono ?: boolean } ) {
13- return (
14- < div className = "flex justify-between items-center gap-2" >
15- < span className = "text-muted-foreground shrink-0" > { label } </ span >
16- < span className = { `truncate text-right ${ mono ? 'font-mono' : '' } ` } title = { value } >
17- { value }
18- </ span >
19- </ div >
20- ) ;
21- }
11+ // 概要项组件
12+ function SummaryItem ( {
13+ label,
14+ value,
15+ mono,
16+ wrap,
17+ } : {
18+ label : string ;
19+ value : string ;
20+ mono ?: boolean ;
21+ wrap ?: boolean ;
22+ } ) {
23+ return (
24+ < div className = { `flex justify-between gap-2 ${ wrap ? 'items-start' : 'items-center' } ` } >
25+ < span className = "text-muted-foreground shrink-0" > { label } </ span >
26+ < span
27+ className = { `flex-1 min-w-0 ${ wrap ? 'text-right break-all whitespace-normal' : 'truncate text-right' } ${ mono ? 'font-mono' : '' } ` }
28+ title = { value }
29+ >
30+ { value }
31+ </ span >
32+ </ div >
33+ ) ;
34+ }
2235
2336// 概要分组组件
2437function SummaryGroup ( { title, children } : { title : string ; children : React . ReactNode } ) {
@@ -57,11 +70,12 @@ export function WindowSummary({ config, onRandomize }: WindowSummaryProps) {
5770 < SummaryGroup title = { t ( 'sections.basicInfo' ) } >
5871 < SummaryItem label = { t ( 'windowInfo.name' ) } value = { config . windowInfo . name || '-' } />
5972 < SummaryItem label = { t ( 'windowInfo.system' ) } value = { config . windowInfo . system } />
60- < SummaryItem
61- label = { t ( 'windowInfo.userAgent' ) }
62- value = { config . windowInfo . userAgent || '-' }
63- mono
64- />
73+ < SummaryItem
74+ label = { t ( 'windowInfo.userAgent' ) }
75+ value = { config . windowInfo . userAgent || '-' }
76+ mono
77+ wrap
78+ />
6579 < SummaryItem
6680 label = { t ( 'windowInfo.platformAccount' ) }
6781 value = {
@@ -147,13 +161,11 @@ export function WindowSummary({ config, onRandomize }: WindowSummaryProps) {
147161 </ SummaryGroup >
148162
149163 { /* 屏幕与硬件 */ }
150- < SummaryGroup title = { t ( 'sections.screenHardware' ) } >
151- < SummaryItem
152- label = { t ( 'summary.resolution' ) }
153- value = { t (
154- `advancedFingerprint.fingerprintMode.${ config . advancedFingerprintSettings . resolution } `
155- ) }
156- />
164+ < SummaryGroup title = { t ( 'sections.screenHardware' ) } >
165+ < SummaryItem
166+ label = { t ( 'summary.resolution' ) }
167+ value = { `${ config . advancedFingerprintSettings . resolution . width } × ${ config . advancedFingerprintSettings . resolution . height } ` }
168+ />
157169 < SummaryItem
158170 label = { t ( 'advancedFingerprint.colorDepth' ) }
159171 value = { `${ config . advancedFingerprintSettings . colorDepth } bit` }
0 commit comments