File tree 2 files changed +14
-7
lines changed
2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export const DocsPageFooter = memo<DocsPageFooterProps>(
27
27
< >
28
28
{ prevRoute ?. path || nextRoute ?. path ? (
29
29
< >
30
- < div className = "max-w-7xl mx-auto grid grid-cols-1 md:grid-cols-2 gap-4 py-4 md:py-12" >
30
+ < div className = "grid grid-cols-1 gap-4 py-4 mx-auto max-w-7xl md:grid-cols-2 md:py-12" >
31
31
{ prevRoute ?. path ? (
32
32
< FooterLink
33
33
type = "Previous"
@@ -69,21 +69,23 @@ function FooterLink({
69
69
< NextLink
70
70
href = { href }
71
71
className = { cn (
72
- 'flex gap-x-4 md:gap-x-6 items-center w-full md:w-80 px-4 md:px-5 py-6 border-2 border-transparent text-base leading-base text-link dark:text-link-dark rounded-lg group focus:text-link dark:focus:text-link-dark focus:bg-highlight focus:border-link dark:focus:bg-highlight-dark dark:focus:border-link-dark focus:border-opacity-100 focus:border-2 focus:ring-1 focus:ring-offset-4 focus:ring-blue-40 active:ring-0 active:ring-offset-0 hover:bg-gray-5 dark:hover:bg-gray-80' ,
72
+ 'flex gap-x-4 md:gap-x-6 items-center w-full md:min- w-80 md:w-fit md:max-w-md px-4 md:px-5 py-6 border-2 border-transparent text-base leading-base text-link dark:text-link-dark rounded-lg group focus:text-link dark:focus:text-link-dark focus:bg-highlight focus:border-link dark:focus:bg-highlight-dark dark:focus:border-link-dark focus:border-opacity-100 focus:border-2 focus:ring-1 focus:ring-offset-4 focus:ring-blue-40 active:ring-0 active:ring-offset-0 hover:bg-gray-5 dark:hover:bg-gray-80' ,
73
73
{
74
74
'flex-row-reverse justify-self-end text-end' : type === 'Next' ,
75
75
}
76
76
) } >
77
77
< IconNavArrow
78
- className = "text-tertiary dark:text-tertiary-dark inline group-focus:text-link dark:group-focus:text-link-dark"
78
+ className = "inline text-tertiary dark:text-tertiary-dark group-focus:text-link dark:group-focus:text-link-dark"
79
79
displayDirection = { type === 'Previous' ? 'start' : 'end' }
80
80
/>
81
- < span >
82
- < span className = "block no-underline text-sm tracking-wide text-secondary dark:text-secondary-dark uppercase font-bold group-focus:text-link dark:group-focus:text-link-dark group-focus:text-opacity-100" >
81
+ < div className = "flex flex-col overflow-hidden" >
82
+ < span className = "text-sm font-bold tracking-wide no-underline uppercase text-secondary dark:text-secondary-dark group-focus:text-link dark:group-focus:text-link-dark group-focus:text-opacity-100" >
83
83
{ type }
84
84
</ span >
85
- < span className = "block text-lg group-hover:underline" > { title } </ span >
86
- </ span >
85
+ < span className = "text-lg break-words group-hover:underline" >
86
+ { title }
87
+ </ span >
88
+ </ div >
87
89
</ NextLink >
88
90
) ;
89
91
}
Original file line number Diff line number Diff line change @@ -57,8 +57,13 @@ module.exports = {
57
57
'meta-gradient-dark' : "url('/images/meta-gradient-dark.png')" ,
58
58
} ,
59
59
maxWidth : {
60
+ ...defaultTheme . maxWidth ,
60
61
xs : '21rem' ,
61
62
} ,
63
+ minWidth :{
64
+ ...defaultTheme . minWidth ,
65
+ 80 : '20rem' ,
66
+ } ,
62
67
outline : {
63
68
blue : [ '1px auto ' + colors . link , '3px' ] ,
64
69
} ,
You can’t perform that action at this time.
0 commit comments