mirror of
https://github.com/pionxzh/chatgpt-exporter.git
synced 2026-07-23 09:00:51 -05:00
refactor: adjust icon size, add PDF icon
This commit is contained in:
@@ -14,8 +14,8 @@ export function IconMarkdown() {
|
||||
}
|
||||
|
||||
// source: fontawesome: copy
|
||||
export function IconCopy({ className, style }: { className?: string; style?: React.CSSProperties }) {
|
||||
return <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" className={className} style={style} fill="currentColor">{/* <!--! Font Awesome Pro 6.2.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --> */}<path d="M502.6 70.63l-61.25-61.25C435.4 3.371 427.2 0 418.7 0H255.1c-35.35 0-64 28.66-64 64l.0195 256C192 355.4 220.7 384 256 384h192c35.2 0 64-28.8 64-64V93.25C512 84.77 508.6 76.63 502.6 70.63zM464 320c0 8.836-7.164 16-16 16H255.1c-8.838 0-16-7.164-16-16L239.1 64.13c0-8.836 7.164-16 16-16h128L384 96c0 17.67 14.33 32 32 32h47.1V320zM272 448c0 8.836-7.164 16-16 16H63.1c-8.838 0-16-7.164-16-16L47.98 192.1c0-8.836 7.164-16 16-16H160V128H63.99c-35.35 0-64 28.65-64 64l.0098 256C.002 483.3 28.66 512 64 512h192c35.2 0 64-28.8 64-64v-32h-47.1L272 448z" /></svg>
|
||||
export function IconCopy() {
|
||||
return <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" className="w-4 h-4" fill="currentColor">{/* <!--! Font Awesome Pro 6.2.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --> */}<path d="M502.6 70.63l-61.25-61.25C435.4 3.371 427.2 0 418.7 0H255.1c-35.35 0-64 28.66-64 64l.0195 256C192 355.4 220.7 384 256 384h192c35.2 0 64-28.8 64-64V93.25C512 84.77 508.6 76.63 502.6 70.63zM464 320c0 8.836-7.164 16-16 16H255.1c-8.838 0-16-7.164-16-16L239.1 64.13c0-8.836 7.164-16 16-16h128L384 96c0 17.67 14.33 32 32 32h47.1V320zM272 448c0 8.836-7.164 16-16 16H63.1c-8.838 0-16-7.164-16-16L47.98 192.1c0-8.836 7.164-16 16-16H160V128H63.99c-35.35 0-64 28.65-64 64l.0098 256C.002 483.3 28.66 512 64 512h192c35.2 0 64-28.8 64-64v-32h-47.1L272 448z" /></svg>
|
||||
}
|
||||
|
||||
// source: fontawesome: arrow-right-from-bracket
|
||||
@@ -36,7 +36,7 @@ export function IconCross() {
|
||||
// source: tabler-icons: json
|
||||
export function IconJSON() {
|
||||
return (
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" className="w-4 h-4" stroke-width="2" stroke="currentColor" fill="none" strokeLinecap="round" strokeLinejoin="round">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" className="w-5 h-5" style={{ marginInline: '-2px', marginTop: '2px' }} stroke-width="2" stroke="currentColor" fill="none" strokeLinecap="round" strokeLinejoin="round">
|
||||
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
||||
<path d="M20 16v-8l3 8v-8"></path>
|
||||
<path d="M15 8a2 2 0 0 1 2 2v4a2 2 0 1 1 -4 0v-4a2 2 0 0 1 2 -2z"></path>
|
||||
@@ -46,6 +46,18 @@ export function IconJSON() {
|
||||
)
|
||||
}
|
||||
|
||||
export function IconPDF() {
|
||||
return (
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" className="w-6 h-6" style={{ marginInline: '-4px', marginTop: '2px' }} stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
||||
<path d="M10 8v8h2a2 2 0 0 0 2 -2v-4a2 2 0 0 0 -2 -2h-2z" />
|
||||
<path d="M3 12h2a2 2 0 1 0 0 -4h-2v8" />
|
||||
<path d="M17 12h3" />
|
||||
<path d="M21 8h-4v8" />
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
// source: tabler-icons: file-zip
|
||||
export function IconZip() {
|
||||
return (
|
||||
|
||||
@@ -129,7 +129,7 @@ function MenuInner({ container }: { container: HTMLDivElement }) {
|
||||
<MenuItem
|
||||
text={t('Copy Text')}
|
||||
successText={t('Copied!')}
|
||||
icon={() => <IconCopy className="w-4 h-4" />}
|
||||
icon={IconCopy}
|
||||
className="row-full"
|
||||
onClick={onClickText}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user