update css label

pull/5194/head
yann300 5 months ago committed by Aniket
parent 672927bdac
commit d280627ea2
  1. 9
      apps/remix-ide/src/app/plugins/templates-selection/templates-selection-plugin.css
  2. 4
      apps/remix-ide/src/app/plugins/templates-selection/templates-selection-plugin.tsx
  3. 1
      apps/remix-ide/src/app/plugins/templates-selection/templates.ts

@ -1,5 +1,12 @@
.TSCellStyle {
min-height: 8.5rem;
min-height: 9rem;
max-width: 13rem;
min-width: 13rem;
max-height: 8.5rem;
}
.TSCellStyleShort {
min-height: 5rem;
max-width: 13rem;
min-width: 13rem;
max-height: 8.5rem;

@ -167,14 +167,14 @@ export class TemplatesSelectionPlugin extends ViewPlugin {
id={item.name}
searchKeywords={[item.displayName, item.description, template.name]}
tagList={item.tagList}
classList='TSCellStyle'
classList={'TSCellStyle' + (!item.description ? 'Short' : '')}
>
<div className='d-flex justify-content-between h-100 flex-column'>
<div className='d-flex flex-column'>
<div>
{item.description && <span className='text-dark'>{item.description}</span>}
</div>
<div className='d-flex flex-wrap'>
<div className='d-flex flex-wrap mb-2'>
{(item.opts && item.opts.upgradeable && item.opts.upgradeable === 'uupds') && <span className='badgeForCell badge text-secondary'>Upgradeable-UUPS</span>}
{(item.opts && item.opts.mintable) && <span className='badgeForCell text-secondary'>mintable</span>}
{(item.opts && item.opts.burnable) && <span className='badgeForCell text-secondary'>burnable</span>}

@ -264,6 +264,7 @@ export const templates = (intl, plugin) => {
await plugin.call('manager', 'activatePlugin', 'cookbookdev')
plugin.call('menuicons', 'showContent', 'cookbookdev')
},
onClickLabel: 'Open Cookbook Plugin',
description: 'Discover more templates!',
items: [
{ value: "token-sale", displayName: 'Token Sale' },

Loading…
Cancel
Save