File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ const classes = [
25
25
]
26
26
27
27
const styleVariables = classNames ([
28
- width && ` width: ${width }px; ` ,
29
- height && ` height: ${height }px; ` ,
28
+ width && ` max- width: ${width }px;` ,
29
+ height && ` max- height: ${height }px;` ,
30
30
color && ` --w-skeleton-color: ${color }; ` ,
31
31
waveColor && ` --w-skeleton-wave-color: ${waveColor }; `
32
32
])
Original file line number Diff line number Diff line change 21
21
])
22
22
23
23
const styleVariables = classNames ([
24
- width && ` width: ${width }px; ` ,
25
- height && ` height: ${height }px; ` ,
24
+ width && ` max- width: ${width }px;` ,
25
+ height && ` max- height: ${height }px;` ,
26
26
color && ` --w-skeleton-color: ${color }; ` ,
27
27
waveColor && ` --w-skeleton-wave-color: ${waveColor }; `
28
28
])
Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ const Skeleton = ({
22
22
] )
23
23
24
24
const styleVariables = {
25
- ...( width && { width : `${ width } px` } ) ,
26
- ...( height && { height : `${ height } px` } ) ,
25
+ ...( width && { maxWidth : `${ width } px` } ) ,
26
+ ...( height && { maxHeight : `${ height } px` } ) ,
27
27
...( color && { '--w-skeleton-color' : color } ) ,
28
28
...( waveColor && { '--w-skeleton-wave-color' : waveColor } )
29
29
} as React . CSSProperties
You can’t perform that action at this time.
0 commit comments