fix(theme): remove "Edit this page" button from print view (#11463)

This commit is contained in:
Richa Kiran 2025-10-10 20:12:37 +05:30 committed by GitHub
parent 505ff8d228
commit 7b33dc109b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 1 deletions

View File

@ -20,7 +20,9 @@ export default function EditMetaRow({
}: Props): ReactNode {
return (
<div className={clsx('row', className)}>
<div className="col">{editUrl && <EditThisPage editUrl={editUrl} />}</div>
<div className={clsx('col', styles.noPrint)}>
{editUrl && <EditThisPage editUrl={editUrl} />}
</div>
<div className={clsx('col', styles.lastUpdated)}>
{(lastUpdatedAt || lastUpdatedBy) && (
<LastUpdated

View File

@ -16,3 +16,9 @@
text-align: right;
}
}
@media print {
.noPrint {
display: none;
}
}