Skip to content

Commit d9d0820

Browse files
authoredSep 28, 2024··
[v3] fix unclickable links on mobile (#3314)
aa
1 parent 2729e2f commit d9d0820

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed
 

‎.changeset/chilled-kiwis-relate.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'nextra-theme-docs': patch
3+
---
4+
5+
fix unclickable links on mobile

‎docs/pages/docs/docs-theme/theme-configuration.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export function Table({ children }) {
3838
<th align="left">Description</th>
3939
</tr>
4040
</thead>
41-
<tbody className="first:[&_td]:font-semibold first:[&_td]:text-violet-600 first:[&_td]:dark:text-violet-500 [&_tr]:!bg-transparent">
41+
<tbody className="break-all first:[&_td]:font-semibold first:[&_td]:text-violet-600 first:[&_td]:dark:text-violet-500 [&_tr]:!bg-transparent">
4242
{children.props.children[1].props.children}
4343
</tbody>
4444
</table>

‎docs/theme.config.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,12 @@ const config: DocsThemeConfig = {
4545
key: '3.0-release',
4646
content: (
4747
<div className='before:content-["🎉_"]'>
48+
Nextra 3.0 is released.{' '}
4849
<Link
4950
href="https://the-guild.dev/blog/nextra-3"
5051
className='after:content-["_→"]'
5152
>
52-
Nextra 3.0 is released. Read more
53+
Read more
5354
</Link>
5455
</div>
5556
)

‎packages/nextra-theme-docs/src/components/sidebar.tsx

+4-2
Original file line numberDiff line numberDiff line change
@@ -390,8 +390,10 @@ export function Sidebar({
390390
)}
391391
<div
392392
className={cn(
393-
'[transition:background-color_1.5s_ease] max-md:_fixed _inset-0 _z-10',
394-
menu ? '_bg-black/80 dark:_bg-black/60' : '_bg-transparent'
393+
'[transition:background-color_1.5s_ease]',
394+
menu
395+
? 'max-md:_bg-black/80 max-md:dark:_bg-black/60 _fixed _inset-0 _z-10'
396+
: '_bg-transparent'
395397
)}
396398
onClick={() => setMenu(false)}
397399
/>

0 commit comments

Comments
 (0)
Please sign in to comment.