Skip to content

Commit 582c8c3

Browse files
authored
fix: Fix breadcrumb + markdown button allignment (#14713)
**Before** <img width="760" height="82" alt="Firefox 2025-08-26 01 48 44" src="https://github.com/user-attachments/assets/c79a78a7-9de8-4b91-8f9c-bc070298e638" /> **After** <img width="759" height="99" alt="Screenshot 2025-08-26 at 01 48 10" src="https://github.com/user-attachments/assets/59589e87-dbec-4603-bbb1-e7d59121c114" />
1 parent 0d7be60 commit 582c8c3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/components/breadcrumbs/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export function Breadcrumbs({leafNode}: BreadcrumbsProps) {
2424
}
2525

2626
return (
27-
<ul className="list-none flex p-0 flex-wrap float-left" style={{margin: 0}}>
27+
<ul className="not-prose list-none flex flex-wrap" style={{margin: 0}}>
2828
{breadcrumbs.map(b => {
2929
return (
3030
<li className={styles['breadcrumb-item']} key={b.to}>

src/components/copyMarkdownButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export function CopyMarkdownButton({pathname}: CopyMarkdownButtonProps) {
119119
};
120120

121121
const buttonClass =
122-
'inline-flex items-center h-full text-gray-700 dark:text-[var(--foreground)] bg-transparent border-none cursor-pointer transition-colors duration-150 hover:bg-gray-50 dark:hover:bg-[var(--gray-a4)] active:bg-gray-100 dark:active:bg-[var(--gray-5)] focus:bg-gray-50 dark:focus:bg-[var(--gray-a4)] outline-none';
122+
'inline-flex items-center text-nowrap h-full text-gray-700 dark:text-[var(--foreground)] bg-transparent border-none cursor-pointer transition-colors duration-150 hover:bg-gray-50 dark:hover:bg-[var(--gray-a4)] active:bg-gray-100 dark:active:bg-[var(--gray-5)] focus:bg-gray-50 dark:focus:bg-[var(--gray-a4)] outline-none';
123123
const dropdownItemClass =
124124
'flex items-center gap-3 w-full p-2 px-3 text-left bg-transparent rounded-md transition-colors hover:bg-gray-100 dark:hover:bg-[var(--gray-a4)] font-sans text-gray-900 dark:text-[var(--foreground)]';
125125
const iconContainerClass =

src/components/docPage/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ export function DocPage({
8282
<div className="mb-4">
8383
<Banner />
8484
</div>
85-
<div className="overflow-hidden">
85+
<div className="flex items-center">
8686
{leafNode && <Breadcrumbs leafNode={leafNode} />}{' '}
87-
<div className="float-right mt-4 sm:mt-0 hidden sm:block">
87+
<div className="ml-auto hidden sm:block">
8888
<CopyMarkdownButton pathname={pathname} />
8989
</div>
9090
</div>

0 commit comments

Comments
 (0)