File tree 2 files changed +3
-2
lines changed 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ const IsaacCodeSnippet = ({doc}: IsaacCodeProps) => {
57
57
{ doc . url && < Row >
58
58
< Col className = "text-center mb-2" >
59
59
< a className = "no-print" href = { doc . url } onClick = { logViewOnGitHub } target = "_blank" rel = "noopener noreferrer" > View on GitHub</ a >
60
- < a className = "only-print mb-2 " href = { doc . url } target = "_blank" rel = "noopener noreferrer" > { doc . url } </ a >
60
+ < a className = "only-print" href = { doc . url } target = "_blank" rel = "noopener noreferrer" > { doc . url } </ a >
61
61
</ Col >
62
62
</ Row > }
63
63
</ > ;
Original file line number Diff line number Diff line change @@ -145,7 +145,8 @@ export const Tabs = (props: TabsProps) => {
145
145
{ Object . entries ( children ) . map ( ( [ tabTitle , tabBody ] , mapIndex ) => {
146
146
const tabIndex = mapIndex + 1 ;
147
147
return < >
148
- { style === "tabs" && < TabNavbar { ...props } className = "d-none d-print-flex" activeTab = { tabIndex } changeTab = { changeTab } > { children } </ TabNavbar > }
148
+ { /* This navbar exists only when printing so each tab has its own heading */ }
149
+ { style === "tabs" && < TabNavbar { ...props } className = { classNames ( "d-none d-print-flex mb-3 mt-2" , { "mt-n4" : mapIndex === 0 && tabContentClass . includes ( "pt-4" ) } ) } activeTab = { tabIndex } changeTab = { changeTab } > { children } </ TabNavbar > }
149
150
< TabPane key = { tabTitle } tabId = { tabIndex } >
150
151
{ tabBody as ReactNode }
151
152
</ TabPane >
You can’t perform that action at this time.
0 commit comments