diff --git a/packages/frontend/core/src/components/affine/share-page-modal/share-menu/index.css.ts b/packages/frontend/core/src/components/affine/share-page-modal/share-menu/index.css.ts index fbe34c0c58..4d13c287d1 100644 --- a/packages/frontend/core/src/components/affine/share-page-modal/share-menu/index.css.ts +++ b/packages/frontend/core/src/components/affine/share-page-modal/share-menu/index.css.ts @@ -38,7 +38,16 @@ export const DoneIconStyle = style({ export const exportItemStyle = style({ padding: '4px', transition: 'all 0.3s', + gap: '0px', }); +globalStyle(`${exportItemStyle} > div:first-child`, { + alignItems: 'center', +}); +globalStyle(`${exportItemStyle} svg`, { + width: '16px', + height: '16px', +}); + export const copyLinkContainerStyle = style({ padding: '4px', display: 'flex', diff --git a/packages/frontend/core/src/components/affine/share-page-modal/share-menu/share-export.tsx b/packages/frontend/core/src/components/affine/share-page-modal/share-menu/share-export.tsx index 45eee2a512..e2839950ec 100644 --- a/packages/frontend/core/src/components/affine/share-page-modal/share-menu/share-export.tsx +++ b/packages/frontend/core/src/components/affine/share-page-modal/share-menu/share-export.tsx @@ -20,7 +20,7 @@ export const ShareExport = () => {
{t['com.affine.share-menu.ShareViaExportDescription']()}
-
+
exportHandler('pdf')} className={className} type="pdf" - icon={} + icon={} label={t['com.affine.export.print']()} /> ); diff --git a/packages/frontend/i18n/src/resources/en.json b/packages/frontend/i18n/src/resources/en.json index 325dc9b24f..f129013d44 100644 --- a/packages/frontend/i18n/src/resources/en.json +++ b/packages/frontend/i18n/src/resources/en.json @@ -118,7 +118,7 @@ "Export": "Export", "Export AFFiNE backup file": "Export AFFiNE backup file", "Export Description": "You can export the entire Workspace data for backup, and the exported data can be re-imported.", - "Export Shared Pages Description": "Download a static copy of your page to share with others.", + "Export Shared Pages Description": "Download a static copy of your page to share with others", "Export Workspace": "Export Workspace <1>{{workspace}} is coming soon", "Export failed": "Export failed", "Export success": "Export success", @@ -1374,19 +1374,19 @@ "com.affine.share-menu.ShareMode": "Share mode", "com.affine.share-menu.SharePage": "Share doc", "com.affine.share-menu.ShareViaExport": "Share via export", - "com.affine.share-menu.ShareViaExportDescription": "Download a static copy of your doc to share with others.", - "com.affine.share-menu.ShareViaPrintDescription": "Print a paper copy.", + "com.affine.share-menu.ShareViaExportDescription": "Download a static copy of your doc to share with others", + "com.affine.share-menu.ShareViaPrintDescription": "Print a paper copy", "com.affine.share-menu.ShareWithLink": "Share with link", "com.affine.share-menu.ShareWithLinkDescription": "Create a link you can easily share with anyone. The visitors will open your doc in the form od a document", "com.affine.share-menu.SharedPage": "Shared doc", "com.affine.share-menu.option.link.label": "Anyone with the link", "com.affine.share-menu.option.link.readonly": "Read Only", - "com.affine.share-menu.option.link.readonly.description": "Anyone can access this link.", + "com.affine.share-menu.option.link.readonly.description": "Anyone can access this link", "com.affine.share-menu.option.link.no-access": "No Access", - "com.affine.share-menu.option.link.no-access.description": "Only workspace members can access this link.", - "com.affine.share-menu.option.permission.label": "Members in Workspace", + "com.affine.share-menu.option.link.no-access.description": "Only workspace members can access this link", + "com.affine.share-menu.option.permission.label": "Members in workspace", "com.affine.share-menu.option.permission.can-edit": "Can Edit", - "com.affine.share-menu.navigate.workspace": "Manage Workspace Members", + "com.affine.share-menu.navigate.workspace": "Manage workspace members", "com.affine.share-menu.copy": "Copy Link", "com.affine.share-menu.copy.page": "Copy Link to Page Mode", "com.affine.share-menu.copy.edgeless": "Copy Link to Edgeless Mode",