@@ -10,47 +10,39 @@ import {Button} from '../Button'
1010import { registerPortalRoot } from '../Portal'
1111import { Playground } from './AnchoredOverlay.stories'
1212import { LocationIcon , RepoIcon } from '@primer/octicons-react'
13+ import { Stack } from '../Stack/Stack'
1314
1415export default {
1516 title : 'Components/AnchoredOverlay/Features' ,
1617 component : AnchoredOverlay ,
1718} as Meta
1819
1920const hoverCard = (
20- < Box p = { 3 } minWidth = { 320 } >
21- < Box display = "flex" flexDirection = "column" sx = { { position : 'relative' } } >
21+ < Stack gap = "condensed" style = { { minWidth : '320px' , padding : '16px' } } >
22+ < Stack direction = "horizontal" gap = "condensed" justify = "space-between" >
2223 < Avatar src = "https://avatars.githubusercontent.com/u/92997159?v=4" size = { 48 } />
23- < Box display = "flex" >
24- < Text weight = "medium" > monalisa</ Text >
25- < Text color = { 'var(--fgColor-muted)' } ml = { 1 } >
26- Monalisa Octocat
27- </ Text >
28- </ Box >
29- < Text fontSize = { 14 } > Former beach cat and champion swimmer. Now your friendly octapus with a normal face.</ Text >
30- < Box display = "flex" mt = { 1 } >
31- < Octicon color = { 'var(--fgColor-muted)' } icon = { LocationIcon } />
32- < Text fontSize = { 12 } ml = { 1 } color = { 'var(--fgColor-muted)' } >
33- Interwebs
34- </ Text >
35- </ Box >
36- < Box display = "flex" mt = { 1 } >
37- < Octicon color = { 'var(--fgColor-muted)' } icon = { RepoIcon } />
38- < Text fontSize = { 12 } ml = { 1 } color = { 'var(--fgColor-muted)' } >
39- Owns this repository
40- </ Text >
41- </ Box >
42- < Button
43- size = "small"
44- sx = { {
45- position : 'absolute' ,
46- right : 0 ,
47- top : 0 ,
48- } }
49- >
50- Follow
51- </ Button >
52- </ Box >
53- </ Box >
24+ < Button size = "small" > Follow</ Button >
25+ </ Stack >
26+ < Stack direction = "horizontal" gap = "none" >
27+ < Text weight = "medium" > monalisa</ Text >
28+ < Text color = { 'var(--fgColor-muted)' } ml = { 1 } >
29+ Monalisa Octocat
30+ </ Text >
31+ </ Stack >
32+ < Text fontSize = { 14 } > Former beach cat and champion swimmer. Now your friendly octapus with a normal face.</ Text >
33+ < Stack direction = "horizontal" gap = "none" >
34+ < Octicon color = { 'var(--fgColor-muted)' } icon = { LocationIcon } />
35+ < Text fontSize = { 12 } color = { 'var(--fgColor-muted)' } ml = { 1 } >
36+ Interwebs
37+ </ Text >
38+ </ Stack >
39+ < Stack direction = "horizontal" gap = "none" >
40+ < Octicon color = { 'var(--fgColor-muted)' } icon = { RepoIcon } />
41+ < Text fontSize = { 12 } color = { 'var(--fgColor-muted)' } ml = { 1 } >
42+ Owns this repository
43+ </ Text >
44+ </ Stack >
45+ </ Stack >
5446)
5547
5648const HeaderAndLayout = ( { children} : { children : JSX . Element } ) => {
0 commit comments