0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Replaced GIF icon

This commit is contained in:
Peter Zimon 2021-11-19 10:32:43 +01:00
parent 2846cc6989
commit d1afdd3b6b
3 changed files with 23 additions and 22 deletions

View file

@ -167,6 +167,20 @@ export const CARD_MENU = [
replaceArg: 'callout',
isAvailable: 'feature.calloutCard'
},
{
label: 'GIF',
icon: 'koenig/kg-card-type-gif',
desc: 'Add with /gif [url or search term]',
iconClass: 'kg-card-type-unsplash',
matches: ['gif', 'giphy', 'tenor'],
type: 'card',
replaceArg: 'image',
params: ['searchTerm'],
payload: {
imageSelector: 'tenor'
},
isAvailable: ['feature.gifsCard', 'config.tenor.apiKey']
},
{
label: 'Toggle',
icon: 'koenig/kg-card-type-accordion',
@ -212,20 +226,6 @@ export const CARD_MENU = [
},
isAvailable: 'settings.unsplash'
},
{
label: 'GIF',
icon: 'koenig/kg-card-type-tenor',
desc: '/gif [search-term or url]',
iconClass: 'kg-card-type-unsplash',
matches: ['gif', 'giphy', 'tenor'],
type: 'card',
replaceArg: 'image',
params: ['searchTerm'],
payload: {
imageSelector: 'tenor'
},
isAvailable: ['feature.gifsCard', 'config.tenor.apiKey']
},
{
label: 'Vimeo',
icon: 'koenig/kg-card-type-vimeo',

View file

@ -0,0 +1,9 @@
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M29 0H3C1.34315 0 0 1.34315 0 3V29C0 30.6569 1.34315 32 3 32H29C30.6569 32 32 30.6569 32 29V3C32 1.34315 30.6569 0 29 0Z" fill="#FFB41F"/>
<path d="M5.5 7.75H26.5" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M5.5 24.25H26.5" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M19 19.75V13.75C19 13.3522 19.158 12.9706 19.4393 12.6893C19.7206 12.408 20.1022 12.25 20.5 12.25H22" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M19 16.75H21.25" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M16 19.75V12.25" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M12.25 16.75H13V18.25C13 18.6478 12.842 19.0294 12.5607 19.3107C12.2794 19.592 11.8978 19.75 11.5 19.75C11.1022 19.75 10.7206 19.592 10.4393 19.3107C10.158 19.0294 10 18.6478 10 18.25V13.75C10 13.3522 10.158 12.9706 10.4393 12.6893C10.7206 12.408 11.1022 12.25 11.5 12.25H13" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

View file

@ -1,8 +0,0 @@
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M29 0H3C1.34315 0 0 1.34315 0 3V29C0 30.6569 1.34315 32 3 32H29C30.6569 32 32 30.6569 32 29V3C32 1.34315 30.6569 0 29 0Z" fill="#007ADD"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M8.22816 16.816C8.26724 17.1092 8.35193 17.3714 8.50177 17.6075C8.85355 18.1629 9.36494 18.4267 10.0197 18.4219C10.5571 18.4186 11.018 18.2232 11.4154 17.8649C11.6239 17.6759 11.917 17.7118 12.0636 17.9382C12.1695 18.101 12.1483 18.2981 12.0017 18.4447C11.5571 18.8893 11.0278 19.1661 10.4008 19.2427C9.99034 19.2932 9.58155 19.2834 9.18254 19.1596C8.27376 18.8779 7.66954 18.2753 7.40081 17.3698C7.08649 16.3063 7.25423 15.3177 7.99526 14.4675C8.49851 13.8926 9.14996 13.619 9.91705 13.632C10.5783 13.6434 11.1548 13.8682 11.619 14.3486C12.005 14.7477 12.2183 15.2346 12.316 15.7753C12.3535 15.9805 12.3698 16.189 12.3795 16.3975C12.3909 16.6271 12.2118 16.8062 11.9822 16.8176C11.9496 16.8193 11.917 16.8176 11.8844 16.8176H8.34379C8.31122 16.816 8.27702 16.816 8.22816 16.816ZM11.4073 15.9968C11.3828 15.7851 11.3226 15.5897 11.2428 15.3991C10.7672 14.2802 9.53106 14.2509 8.8959 14.7965C8.56203 15.0832 8.36496 15.4496 8.26725 15.873C8.25747 15.9121 8.25422 15.9512 8.24607 15.9968H11.4073Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M18.9055 16.4185C18.9071 14.9788 20.0227 13.6254 21.7295 13.6287C23.3207 13.6303 24.5406 14.8632 24.5373 16.4658C24.5341 18.0406 23.2898 19.2686 21.6953 19.2703C20.1595 19.2703 18.9022 17.9869 18.9055 16.4185ZM23.5732 16.4934C23.565 15.9348 23.4038 15.469 23.0504 15.0749C22.3289 14.2687 21.0113 14.2997 20.3191 15.1303C19.7426 15.8224 19.7019 17.0439 20.3713 17.7963C20.9673 18.4673 22.039 18.6058 22.7686 18.0846C23.324 17.6872 23.5569 17.1253 23.5732 16.4934Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M14.2329 14.4202C14.3355 14.3224 14.4186 14.2394 14.5049 14.1612C14.9218 13.7801 15.4202 13.6238 15.9756 13.6286C16.4137 13.6335 16.8257 13.7313 17.1905 13.9853C17.6433 14.3013 17.8892 14.7491 17.9853 15.2817C18.0163 15.4543 18.0325 15.6319 18.0342 15.8078C18.0391 16.8045 18.0358 17.7996 18.0358 18.7963C18.0358 18.9869 17.9153 19.1676 17.7378 19.2328C17.5521 19.3012 17.3778 19.2735 17.2345 19.1302C17.1335 19.0308 17.0896 18.9054 17.0896 18.7621C17.0912 17.8387 17.0944 16.9169 17.0863 15.9934C17.0847 15.811 17.0586 15.6237 17.0146 15.4478C16.8762 14.9088 16.4902 14.5814 15.9381 14.5179C15.5456 14.4723 15.1727 14.5342 14.8453 14.7719C14.4105 15.0879 14.2362 15.5374 14.2346 16.0586C14.2313 16.9674 14.2346 17.8778 14.2329 18.7865C14.2329 19.1351 13.8942 19.3614 13.5717 19.2295C13.4007 19.1595 13.2851 18.9738 13.2851 18.7654V17.324V14.1075C13.2851 13.9234 13.3698 13.7834 13.5261 13.6922C13.6873 13.5977 13.8551 13.6026 14.0131 13.7019C14.1482 13.7883 14.2297 13.9137 14.2329 14.0798C14.2346 14.1873 14.2329 14.2915 14.2329 14.4202Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.13537 13.7394H5.24123H6.41384C6.58974 13.7394 6.73306 13.7964 6.82426 13.9544C6.97572 14.2199 6.821 14.5407 6.51808 14.5863C6.47085 14.5928 6.42036 14.5945 6.3715 14.5945H5.2396H5.13537V14.6857V17.5928C5.13537 17.7882 5.16631 17.9755 5.29823 18.1351C5.40572 18.2654 5.55067 18.3208 5.70865 18.3452C5.9448 18.3827 6.17932 18.3631 6.40896 18.2915C6.6272 18.2214 6.84218 18.3191 6.91546 18.5227C6.99038 18.7296 6.88452 18.9331 6.68257 19.0309C6.40896 19.1644 6.12232 19.223 5.81939 19.2393C5.03439 19.2784 4.32919 18.7084 4.2103 17.9299C4.19402 17.8289 4.18913 17.7247 4.18913 17.6221C4.1875 16.653 4.1875 15.684 4.1875 14.715V14.6026C4.15167 14.601 4.12236 14.5977 4.09467 14.5977C3.91552 14.5977 3.73637 14.601 3.55722 14.5961C3.26407 14.5879 3.07514 14.3681 3.11912 14.0912C3.15006 13.8958 3.32758 13.7492 3.55071 13.7427C3.7266 13.7378 3.90412 13.741 4.08001 13.741C4.1875 13.741 4.1875 13.741 4.1875 13.6287V12.4968C4.1875 12.2199 4.38782 12.0082 4.65492 12.0049C4.92202 12.0017 5.13211 12.215 5.13374 12.4951C5.13537 12.8746 5.13374 13.2557 5.13374 13.6352C5.13537 13.6661 5.13537 13.6987 5.13537 13.7394Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M26.4298 14.7704C26.5698 14.6108 26.6936 14.4528 26.8369 14.3127C27.1643 13.9935 27.5486 13.7704 28.0014 13.6808C28.1382 13.6531 28.2815 13.6466 28.4216 13.6531C28.6871 13.6678 28.8858 13.8893 28.8858 14.1499C28.8858 14.4072 28.6838 14.6254 28.4216 14.6499C28.2278 14.6678 28.0307 14.671 27.8402 14.7118C27.3174 14.8241 26.9477 15.1401 26.7099 15.614C26.5014 16.0277 26.4314 16.4739 26.4298 16.9316C26.4265 17.5423 26.4298 18.1531 26.4298 18.7638C26.4298 19.0472 26.2213 19.2671 25.9526 19.2654C25.6822 19.2638 25.4787 19.0537 25.4787 18.7703V14.0978C25.4787 13.886 25.6285 13.6939 25.8304 13.6434C26.0519 13.588 26.2669 13.6792 26.363 13.8828C26.4005 13.961 26.4216 14.0522 26.4249 14.1401C26.4347 14.3209 26.4281 14.5033 26.4281 14.6857C26.4298 14.7134 26.4298 14.7394 26.4298 14.7704Z" fill="white"/>
</svg>

Before

Width:  |  Height:  |  Size: 4.9 KiB