Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions src/components/docs-previous-next-link.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,32 +19,35 @@ export default function DocsPreviousNextLinks({ routes }) {
const nextPage = routes[currentIndex + 1];

return (
<nav aria-label="pagination" className="mt-8 mb-4 flex justify-between">
<nav
aria-label="pagination"
className="mt-8 mb-4 flex justify-between space-x-2"
>
{previousPage && (
<Link
className="max-w-[200px] font-normal text-gray-400 no-underline transition duration-200 ease-in hover:text-white focus:text-white"
className="max-w-[50%] font-normal text-gray-400 no-underline transition duration-200 ease-in hover:text-white focus:text-white"
href={previousPage.route}
noDefaultStyles
aria-label={`Go to previous page: ${previousPage.title}`}
>
<span className="mb-1 ml-10 block text-sm">Previous</span>
<span className="mb-1 block text-sm sm:ml-10">Previous</span>
<span>
<ChevronLeftIcon className="inline h-5 w-10 pr-4 align-text-top" />
<ChevronLeftIcon className="hidden h-5 w-10 pr-4 align-text-top sm:inline" />
</span>
<span className="text-white">{previousPage.title}</span>
</Link>
)}
{nextPage && (
<Link
className="max-w-[200px] font-normal text-gray-400 no-underline transition duration-200 ease-in hover:text-white focus:text-white"
className="max-w-[50%] font-normal text-gray-400 no-underline transition duration-200 ease-in hover:text-white focus:text-white"
href={nextPage.route}
noDefaultStyles
aria-label={`Go to next page: ${nextPage.title}`}
>
<span className="mb-1 block text-sm">Next</span>
<span className="text-white">{nextPage.title}</span>
<span>
<ChevronRightIcon className="inline h-5 w-10 pl-4 align-text-top" />
<ChevronRightIcon className="hidden h-5 w-10 pl-4 align-text-top sm:inline" />
</span>
</Link>
)}
Expand Down
2 changes: 1 addition & 1 deletion src/components/heading.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function Heading({ level, children, id, ...props }) {
>
<Link
href={`#${id}`}
className="no-underline transition-colors group-hover:text-blue-500"
className="break-all no-underline transition-colors group-hover:text-blue-500"
noDefaultStyles
>
{children}
Expand Down