@@ -25,15 +25,16 @@ storiesOf('UI | Flex', module)
25
25
. add ( 'Flex grow' , ( ) => ( {
26
26
components : { CFlex, CBox, CText } ,
27
27
template : `
28
- <CFlex align="center">
29
- <CBox rounded-top="lg" p="3" w="20" mr="3" h="20" bg="blue.100">1</CBox>
30
- <CBox rounded-right="lg" p="3" w="20" mr="3" h="20" bg="blue.100">2</CBox>
31
- <CBox rounded-bottom="lg" p="3" w="20" mr="3" h="20" bg="blue.100">3</CBox>
32
- <CBox rounded-right="lg" p="3" w="20" mr="3" h="20" bg="blue.100">4</CBox>
33
- <CBox border-top-right-radius="lg" p="3" w="20" mr="3" h="20" bg="blue.100">5</CBox>
34
- <CBox border-top-left-radius="lg" p="3" w="20" mr="3" h="20" bg="blue.100">6</CBox>
35
- <CBox border-bottom-right-radius="lg" p="3" w="20" mr="3" h="20" bg="blue.100">7</CBox>
36
- <CBox border-bottom-left-radius="lg" p="3" w="20" h="20" bg="blue.100">8</CBox>
28
+ <CFlex w="600px" align="center">
29
+ <CBox flex-grow="2" w="10" mr="3" h="10" bg="blue.100">1</CBox>
30
+ <CBox rounded-top="lg" w="10" mr="3" h="10" bg="blue.100">1</CBox>
31
+ <CBox rounded-right="lg" w="10" mr="3" h="10" bg="blue.100">2</CBox>
32
+ <CBox rounded-bottom="lg" w="10" mr="3" h="10" bg="blue.100">3</CBox>
33
+ <CBox rounded-right="lg" w="10" mr="3" h="10" bg="blue.100">4</CBox>
34
+ <CBox border-top-right-radius="lg" w="10" mr="3" h="10" bg="blue.100">5</CBox>
35
+ <CBox border-top-left-radius="lg" w="10" mr="3" h="10" bg="blue.100">6</CBox>
36
+ <CBox border-bottom-right-radius="lg" w="10" mr="3" h="10" bg="blue.100">7</CBox>
37
+ <CBox border-bottom-left-radius="lg" w="10" h="10" bg="blue.100">8</CBox>
37
38
</CFlex>
38
39
`
39
40
} ) )
0 commit comments