mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-17 08:37:59 +00:00
feat: new code block style in document (#5468)
* feat: new code block style in document * feat: update fonts and icon in code block * feat: dark theme color, delete fonts files, move copy icon to correct position * style: code block more obvious in light and dark theme
This commit is contained in:
BIN
document/public/fonts/Alef-Regular.ttf
Normal file
BIN
document/public/fonts/Alef-Regular.ttf
Normal file
Binary file not shown.
12
document/public/icons/copy.svg
Normal file
12
document/public/icons/copy.svg
Normal file
@@ -0,0 +1,12 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="26" height="26" viewBox="0 0 26 26" fill="none">
|
||||
<g clip-path="url(#clip0_26346_106871)">
|
||||
<foreignObject x="-14.4444" y="-14.4444" width="54.8889" height="54.8889"><div xmlns="http://www.w3.org/1999/xhtml" style="backdrop-filter:blur(7.22px);clip-path:url(#bgblur_1_26346_106871_clip_path);height:100%;width:100%"></div></foreignObject><rect data-figma-bg-blur-radius="14.4444" width="26" height="26" rx="5.77778" fill="black" fill-opacity="0.01"/>
|
||||
<path d="M18.7779 4.33325H11.0742C9.4372 4.33325 8.18535 5.5851 8.18535 7.22214V8.1851H7.22239C5.58535 8.1851 4.3335 9.43696 4.3335 11.074V18.7777C4.3335 20.4147 5.58535 21.6666 7.22239 21.6666H14.9261C16.5631 21.6666 17.815 20.4147 17.815 18.7777V17.8147H18.7779C20.415 17.8147 21.6668 16.5629 21.6668 14.9258V7.22214C21.6668 5.5851 20.415 4.33325 18.7779 4.33325ZM15.8891 18.7777C15.8891 19.3555 15.5039 19.7407 14.9261 19.7407H7.22239C6.64461 19.7407 6.25942 19.3555 6.25942 18.7777V11.074C6.25942 10.4962 6.64461 10.111 7.22239 10.111H14.9261C15.5039 10.111 15.8891 10.4962 15.8891 11.074V18.7777ZM19.7409 14.9258C19.7409 15.5036 19.3557 15.8888 18.7779 15.8888H17.815V11.074C17.815 9.43696 16.5631 8.1851 14.9261 8.1851H10.1113V7.22214C10.1113 6.64436 10.4965 6.25918 11.0742 6.25918H18.7779C19.3557 6.25918 19.7409 6.64436 19.7409 7.22214V14.9258Z" fill="#818181"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="bgblur_1_26346_106871_clip_path" transform="translate(14.4444 14.4444)"><rect width="26" height="26" rx="5.77778"/>
|
||||
</clipPath><clipPath id="clip0_26346_106871">
|
||||
<rect width="26" height="26" fill="white"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 1.6 KiB |
Reference in New Issue
Block a user