mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 19:33:02 +03:00
Updated snippet replacement dropdown
This commit is contained in:
parent
de480234e9
commit
f59fae71eb
@ -92,11 +92,12 @@ export default class GhInputWithSelectComponent extends Component {
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
buildSuggestionLabel(term) {
|
||||
if (this.args.buildSuggestion) {
|
||||
return this.args.buildSuggestion(term);
|
||||
}
|
||||
|
||||
return `Add "${term}"...`;
|
||||
return `Create "${term}"...`;
|
||||
}
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
{{@option.text}}
|
||||
<span class="green-d1">{{@option.text}}</span>
|
@ -15,8 +15,10 @@
|
||||
{{#if snippet.__isSuggestion__}}
|
||||
{{snippet}}
|
||||
{{else}}
|
||||
<div class="flex justify-between items-center">
|
||||
{{snippet.name}}
|
||||
<span class="dib w4 h4">{{svg-jar "reload"}}</span>
|
||||
<span class="fill-darkgrey dib w4 h4">{{svg-jar "sync"}}</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
</GhInputWithSelect>
|
||||
</div>
|
@ -1 +1,3 @@
|
||||
<svg version="1" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g><path d="M7.239 9.628c-.211-.175-.526-.149-.704.063l-2.513 3.01c-.218-1.862.19-3.738 1.197-5.372 1.17-1.899 3.048-3.274 5.153-3.772 2.87-.679 5.876.272 7.836 2.486.183.207.5.224.705.043.207-.183.227-.499.043-.706-2.203-2.489-5.58-3.561-8.815-2.796-2.361.559-4.465 2.097-5.774 4.221-.95 1.542-1.42 3.279-1.399 5.036l-1.626-2.422c-.155-.23-.469-.288-.693-.136-.23.154-.292.465-.137.694l2.787 4.151c.088.13.231.212.389.221h.026c.147 0 .288-.065.384-.18l3.205-3.838c.176-.211.148-.526-.064-.703zM23.915 13.721l-2.786-4.151c-.088-.13-.231-.212-.389-.221-.103-.006-.202.034-.291.091l-.029.021-.091.067-3.206 3.837c-.177.212-.148.527.063.705.213.177.528.15.704-.064l2.421-2.899c.059 3.685-2.549 7.144-6.26 8.02-2.695.638-5.486-.144-7.465-2.093-.194-.194-.511-.192-.707.005-.193.197-.191.513.006.707 1.714 1.689 3.971 2.6 6.305 2.6.694 0 1.396-.081 2.092-.245 3.983-.94 6.838-4.535 7.025-8.47l1.777 2.648c.098.143.256.221.416.221.097 0 .193-.027.278-.085.23-.154.291-.464.137-.694zM12.213 8.85c-.667 0-1.295.26-1.767.731-.975.975-.975 2.562 0 3.536.472.472 1.1.732 1.768.732.667 0 1.295-.26 1.767-.732.975-.974.975-2.561 0-3.537-.472-.471-1.1-.73-1.768-.73zm1.06 3.56c-.567.566-1.555.565-2.12 0-.585-.585-.585-1.537 0-2.122.283-.283.659-.439 1.061-.439.4 0 .776.156 1.06.438.584.586.584 1.539-.001 2.123z"/></g></svg>
|
||||
<svg width="12" height="12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M4.47 1.867a4.525 4.525 0 015.02 1.378.4.4 0 01-.618.51 3.725 3.725 0 00-6.597 2.369v.159l.817-.817a.4.4 0 11.565.565l-1.48 1.48a.4.4 0 01-.605 0l-1.48-1.48a.4.4 0 11.565-.565l.818.817v-.16A4.526 4.526 0 014.47 1.868zm5.655 3.107a.4.4 0 01.283.117l1.5 1.5a.4.4 0 01-.566.565l-.822-.822A4.525 4.525 0 012.709 9.23a.4.4 0 01.582-.55 3.725 3.725 0 006.427-2.333l-.81.81a.4.4 0 11-.566-.565l1.5-1.5a.4.4 0 01.283-.117z"/>
|
||||
</svg>
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 513 B |
Loading…
Reference in New Issue
Block a user