diff --git a/src/app/components/elements/PageMetadata.tsx b/src/app/components/elements/PageMetadata.tsx index 8e516238e1..d789bc76ce 100644 --- a/src/app/components/elements/PageMetadata.tsx +++ b/src/app/components/elements/PageMetadata.tsx @@ -50,7 +50,7 @@ interface ActionButtonsProps extends React.HTMLAttributes { export const ActionButtons = ({location, isQuestion, helpModalId, doc, ...rest}: ActionButtonsProps) => { const deviceSize = useDeviceSize(); - const anyActionButtonShown = isPhy && helpModalId || above['sm'](deviceSize) || doc?.id; + const anyActionButtonShown = isPhy && helpModalId || (above['sm'](deviceSize) && (doc || isPhy)) || doc?.id; return anyActionButtonShown &&
{isPhy && isQuestion && @@ -59,7 +59,7 @@ export const ActionButtons = ({location, isQuestion, helpModalId, doc, ...rest}: } {isPhy && helpModalId && } {above['sm'](deviceSize) && <> - + {(doc || isPhy) && } {doc && } {/* don't show print for internal (non content-driven) pages */} } {doc?.id && } diff --git a/src/app/components/elements/layout/PageContainer.tsx b/src/app/components/elements/layout/PageContainer.tsx index 9b0bfe9b3a..032412da42 100644 --- a/src/app/components/elements/layout/PageContainer.tsx +++ b/src/app/components/elements/layout/PageContainer.tsx @@ -47,7 +47,7 @@ export const PageContainer = (props: PageContainerProps) => { {sidebar} - + {pageTitle} {children}