Skip to content

Commit 616e80d

Browse files
committed
update copy icon
1 parent 76c2eac commit 616e80d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

snippets/components/CodePreview.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export const CodePanel = ({ children, fileName = 'config.yaml', showLineNumbers
110110
document.execCommand('copy');
111111
btn.dataset.copied = 'true';
112112
setTimeout(() => (btn.dataset.copied = 'false'), 1500);
113-
} catch (err) {}
113+
} catch (err) { }
114114
document.body.removeChild(ta);
115115
}
116116
} catch (err) {
@@ -339,9 +339,9 @@ export const CodePanel = ({ children, fileName = 'config.yaml', showLineNumbers
339339
data-copied="false"
340340
onClick={handleCopy}
341341
>
342-
<svg className="icon-copy" fill="currentColor" viewBox="0 0 20 20">
343-
<path d="M8 2a2 2 0 00-2 2H5a2 2 0 00-2 2v9a2 2 0 002 2h7a2 2 0 002-2v-1h1a2 2 0 002-2V7l-5-5H8z" />
344-
<path d="M9 3h2v3h3v2h-5V3z" />
342+
<svg className='icon-copy' viewBox="0 0 15 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg" role="img" class="w-3 h-3">
343+
<path d="M10.113 3.124H2.205C1.463 3.124.86 3.655.86 4.31v10.005c0 .654.603 1.186 1.345 1.186h7.908c.742 0 1.345-.532 1.345-1.186V4.31c-.004-.655-.606-1.186-1.345-1.186Zm.4 11.188c0 .196-.18.356-.403.356H2.202c-.223 0-.405-.16-.405-.356V4.31c0-.197.182-.357.405-.357h7.908c.223 0 .404.16.404.357v10.002Z" fill="currenColor" stroke="currenColor" stroke-width="0.2"></path>
344+
<path d="M13.138.5H5.229c-.742 0-1.344.531-1.344 1.186 0 .23.209.414.47.414s.47-.184.47-.414c0-.197.182-.357.404-.357h7.909c.223 0 .404.16.404.357V11.69c0 .196-.181.356-.404.356-.262 0-.47.184-.47.415 0 .23.208.415.47.415.742 0 1.344-.532 1.344-1.186V1.686C14.482 1.03 13.88.5 13.138.5Z" fill="currenColor" stroke="currenColor" stroke-width="0.2"></path>
345345
</svg>
346346
<svg className="icon-check" fill="currentColor" viewBox="0 0 20 20">
347347
<path

0 commit comments

Comments
 (0)