File tree 2 files changed +16
-15
lines changed
2 files changed +16
-15
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { Flex } from './flex'
3
3
import { Box } from './box'
4
4
5
5
const Media = ( props ) => (
6
- < Flex { ...props } />
6
+ < Flex flex = '1 1 auto' { ...props } />
7
7
)
8
8
9
9
const MediaSide = ( props ) => (
@@ -14,10 +14,8 @@ const MediaContent = (props) => (
14
14
< Box flex = '1 1 auto' { ...props } />
15
15
)
16
16
17
- Object . assign ( Media , {
18
- Side : MediaSide ,
19
- Content : MediaContent
20
- } )
17
+ Media . Side = MediaSide
18
+ Media . Content = MediaContent
21
19
22
20
export {
23
21
Media ,
Original file line number Diff line number Diff line change @@ -1514,11 +1514,24 @@ exports[`Layout 1`] = `
1514
1514
` ;
1515
1515
1516
1516
exports [` Media 1` ] = `
1517
+ .emotion-2 {
1518
+ box - sizing : border - box ;
1519
+ margin : 0 ;
1520
+ padding : 0 ;
1521
+ min - width : 0 ;
1522
+ - webkit - flex : 1 1 auto ;
1523
+ - ms - flex : 1 1 auto ;
1524
+ flex : 1 1 auto ;
1525
+ }
1526
+
1517
1527
.emotion-4 {
1518
1528
box - sizing : border - box ;
1519
1529
margin : 0 ;
1520
1530
padding : 0 ;
1521
1531
min - width : 0 ;
1532
+ - webkit - flex : 1 1 auto ;
1533
+ - ms - flex : 1 1 auto ;
1534
+ flex : 1 1 auto ;
1522
1535
display : - webkit - box ;
1523
1536
display : - webkit - flex ;
1524
1537
display : - ms - flexbox ;
@@ -1535,16 +1548,6 @@ exports[`Media 1`] = `
1535
1548
flex : 0 0 auto ;
1536
1549
}
1537
1550
1538
- .emotion-2 {
1539
- box - sizing : border - box ;
1540
- margin : 0 ;
1541
- padding : 0 ;
1542
- min - width : 0 ;
1543
- - webkit - flex : 1 1 auto ;
1544
- - ms - flex : 1 1 auto ;
1545
- flex : 1 1 auto ;
1546
- }
1547
-
1548
1551
<div
1549
1552
className = " emotion-4 emotion-5"
1550
1553
>
You can’t perform that action at this time.
0 commit comments