Skip to content

Commit 89f8f5e

Browse files
authored
Merge pull request #6111 from ethereum/cookbook-font-focus
Cookbook Template explorer fixes
2 parents 1f63933 + fb0c531 commit 89f8f5e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/remix-ide/src/app/plugins/templates-selection/templates-selection-plugin.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ export class TemplatesSelectionPlugin extends ViewPlugin {
272272
>
273273
<div className='d-flex justify-content-between h-100 flex-column'>
274274
<span className='pt-4 px-1 h6 text-dark'>{template.description}</span>
275-
<span style={{ cursor: 'pointer' }} className='mt-2 btn btn-sm border align-items-left' onClick={() => template.onClick()}>{template.onClickLabel}</span>
275+
<span style={{ cursor: 'pointer' }} className='mt-2 mb-1 btn btn-sm border align-items-left' onClick={() => template.onClick()}>{template.onClickLabel}</span>
276276
</div>
277277
</RemixUIGridCell>}
278278
</RemixUIGridSection>

apps/remix-ide/src/app/plugins/templates-selection/templates.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ export const templates = (intl: any, plugin: any): TemplateGroup[] => {
268268
tooltip: "Cookbook is a Smart Contract Search Tool. Click here to open Cookbook and browse Contracts.",
269269
onClick: async () => {
270270
await plugin.call('manager', 'activatePlugin', 'cookbookdev')
271-
await plugin.call('menuicons', 'showContent', 'cookbookdev')
271+
await plugin.call('sidePanel', 'focus', 'cookbookdev')
272272
},
273273
onClickLabel: 'Open Cookbook Plugin',
274274
description: 'Discover more templates!',

0 commit comments

Comments
 (0)