@@ -35,7 +35,7 @@ const TranslationBannerLegal = ({
35
35
return (
36
36
< aside
37
37
className = { cn (
38
- "fixed z-50 " ,
38
+ "fixed z-popover bg-background-highlight " ,
39
39
"bottom-0 md:bottom-8" ,
40
40
"right-0 md:right-8" ,
41
41
isOpen ? "block" : "hidden"
@@ -46,26 +46,21 @@ const TranslationBannerLegal = ({
46
46
"relative flex justify-between" ,
47
47
"w-full md:max-w-[600px]" ,
48
48
"rounded-sm p-4" ,
49
- "bg-info-banner text-black-300" ,
50
- "shadow-[rgba(0,0,0,0.16)_0px_2px_4px_0px] md:shadow-md"
49
+ "shadow-md"
51
50
) }
52
51
>
53
- < div className = "m-4 mt-[40px] flex flex-col sm:mt-4" >
54
- < div className = "mb-4 flex flex-col-reverse items-start sm:flex-row sm:items-center" >
55
- < h3 className = "text-xl font-bold leading-none md:text-2xl" >
52
+ < div className = "m-4 mt-10 flex flex-col gap-4 sm:mt-4" >
53
+ < div className = "flex flex-col-reverse items-start sm:flex-row sm:items-center" >
54
+ < h3 className = "leading-none md:text-2xl" >
56
55
< Translation id = "translation-banner-no-bugs-title" />
57
- < Emoji
58
- text = ":bug:"
59
- className = "mb-4 ms-2 pt-2 text-3xl sm:mb-auto"
60
- />
56
+ < Emoji text = ":bug:" className = "ms-2 text-3xl sm:mb-auto" />
61
57
</ h3 >
62
58
</ div >
63
59
< p >
64
60
< Translation id = "translation-banner-no-bugs-content" />
65
61
</ p >
66
62
< div className = "flex flex-col items-start sm:flex-row sm:items-center" >
67
63
< Button
68
- variant = "link"
69
64
onClick = { ( ) => {
70
65
localStorage . setItem (
71
66
`dont-show-translation-legal-banner-${ originalPagePath } ` ,
@@ -78,17 +73,16 @@ const TranslationBannerLegal = ({
78
73
</ Button >
79
74
</ div >
80
75
</ div >
81
- < button
82
- type = "button "
76
+ < Button
77
+ variant = "ghost "
83
78
className = { cn (
84
- "absolute right-0 top-0 m-4" ,
85
- "rounded-sm p-2" ,
79
+ "absolute right-0 top-0 m-4 p-2" ,
86
80
"text-secondary hover:text-primary"
87
81
) }
88
82
onClick = { ( ) => setIsOpen ( false ) }
89
83
>
90
84
< MdClose className = "h-4 w-4" />
91
- </ button >
85
+ </ Button >
92
86
</ div >
93
87
</ aside >
94
88
)
0 commit comments