chore: modify the text content of share menu (#8026)

![CleanShot 2024-08-30 at 12 18 27@2x](https://github.com/user-attachments/assets/f43a6d31-1bdb-491c-95f6-4609973b84a6)
![CleanShot 2024-08-30 at 12 18 40@2x](https://github.com/user-attachments/assets/387d4523-d5fb-41d4-8b46-c278432db05e)
This commit is contained in:
JimmFly
2024-09-02 09:56:17 +00:00
parent d93d39e29d
commit a992376053
4 changed files with 19 additions and 10 deletions

View File

@@ -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',

View File

@@ -20,7 +20,7 @@ export const ShareExport = () => {
<div className={styles.descriptionStyle}>
{t['com.affine.share-menu.ShareViaExportDescription']()}
</div>
<div>
<div className={styles.exportContainerStyle}>
<ExportMenuItems
exportHandler={exportHandler}
className={styles.exportItemStyle}

View File

@@ -6,7 +6,7 @@ import {
ExportToHtmlIcon,
ExportToMarkdownIcon,
ExportToPngIcon,
FileIcon,
PrinterIcon,
} from '@blocksuite/icons/rc';
import type { ReactNode } from 'react';
import { useCallback } from 'react';
@@ -57,7 +57,7 @@ export const PrintMenuItems = ({
onSelect={() => exportHandler('pdf')}
className={className}
type="pdf"
icon={<FileIcon />}
icon={<PrinterIcon />}
label={t['com.affine.export.print']()}
/>
);