File tree Expand file tree Collapse file tree 1 file changed +43
-41
lines changed
apps/landing/src/app/(detail)/components Expand file tree Collapse file tree 1 file changed +43
-41
lines changed Original file line number Diff line number Diff line change @@ -52,48 +52,50 @@ export default function MdxCardFooter({
5252 </ Center >
5353 </ Flex >
5454 { isOpen && (
55- < Box
56- borderTop = "1px solid $border"
57- h = "100%"
58- overflow = "auto"
59- pos = "relative"
60- px = "24px"
61- py = "16px"
62- >
63- < Center
64- _active = { {
65- borderColor : '$primary' ,
66- bg : '$menuActive' ,
67- } }
68- _hover = { {
69- borderColor : '$primary' ,
70- bg : '$menuHover' ,
71- } }
72- bg = "$containerBackground"
73- border = "1px solid transparent"
74- borderRadius = "4px"
75- boxShadow = "0 2px 6px 0 $shadow"
76- cursor = "pointer"
77- gap = "8px"
78- onClick = { handleCopy }
79- p = "8px"
80- pos = "absolute"
81- right = "24px"
82- top = "16px"
83- transition = "all 0.125s ease-in-out"
55+ < >
56+ < Box h = "0" pos = "relative" w = "100%" >
57+ < Center
58+ _active = { {
59+ borderColor : '$primary' ,
60+ bg : '$menuActive' ,
61+ } }
62+ _hover = { {
63+ borderColor : '$primary' ,
64+ bg : '$menuHover' ,
65+ } }
66+ bg = "$containerBackground"
67+ border = "1px solid transparent"
68+ borderRadius = "4px"
69+ boxShadow = "0 2px 6px 0 $shadow"
70+ cursor = "pointer"
71+ gap = "8px"
72+ onClick = { handleCopy }
73+ p = "8px"
74+ pos = "absolute"
75+ right = "16px"
76+ top = "16px"
77+ transition = "all 0.125s ease-in-out"
78+ >
79+ < Image
80+ aspectRatio = "1"
81+ boxSize = "20px"
82+ src = { copied ? '/icons/copied.svg' : '/icons/copy-code.svg' }
83+ />
84+ < Text color = "$captionBold" typography = "caption" >
85+ Copy
86+ </ Text >
87+ </ Center >
88+ </ Box >
89+ < Box
90+ borderTop = "1px solid $border"
91+ h = "100%"
92+ overflow = "auto"
93+ px = "24px"
94+ py = "16px"
8495 >
85- < Image
86- aspectRatio = "1"
87- boxSize = "20px"
88- src = { copied ? '/icons/copied.svg' : '/icons/copy-code.svg' }
89- />
90- < Text color = "$captionBold" typography = "caption" >
91- Copy
92- </ Text >
93- </ Center >
94-
95- { children }
96- </ Box >
96+ { children }
97+ </ Box >
98+ </ >
9799 ) }
98100 </ VStack >
99101 )
You can’t perform that action at this time.
0 commit comments