fixed pinns

pull/5003/head
lianahus 4 months ago committed by Aniket
parent 1f5fdddc4f
commit 42402a1110
  1. 1
      apps/remix-ide/src/app/providers/environment-explorer.tsx
  2. 2
      apps/remix-ide/src/remixAppManager.js
  3. 6
      libs/remix-ui/grid-view/src/lib/remix-ui-grid-cell.css
  4. 2
      libs/remix-ui/grid-view/src/lib/remix-ui-grid-cell.tsx

@ -106,6 +106,7 @@ export class EnvironmentExplorer extends ViewPlugin {
return <RemixUIGridCell
plugin={this}
title={provider.name}
pinned={this.pinnedProviders.includes(provider.name)}
pinStateCallback={async (pinned: boolean) => {
const providerName = await this.call('blockchain', 'getProvider')

@ -86,8 +86,6 @@ let requiredModules = [ // services + layout views + system views
'walletconnect'
]
// dependentModules shouldn't be manually activated (e.g hardhat is activated by remixd)
const dependentModules = ['foundry', 'hardhat', 'truffle', 'slither']

@ -27,8 +27,8 @@
width: 1rem;
height: 1rem;
position: relative;
right: 1rem;
top: -0.5rem;
right: 1.5rem;
top: -4rem;
background: transparent;
}
@ -41,7 +41,7 @@
.remixui_grid_cell_tags_no_pin {
position: relative;
right: 0rem;
top: 0.1rem;
top: -6.5rem;
}
.remixui_grid_cell_tag {

@ -34,8 +34,8 @@ export const RemixUIGridCell = (props: RemixUIGridCellProps) => {
useEffect(() => {
if (props.tagList) setAnyEnabled(props.tagList.some((key) => filterCon.keyValueMap[key]?.enabled))
else setAnyEnabled(filterCon?.keyValueMap['no tag']?.enabled)
if (!props.tagList || props.tagList.length == 0) setAnyEnabled(true)
if (filterCon.filter != '') setAnyEnabled(anyEnabled && props.title.toLowerCase().includes(filterCon.filter))
console.log("pin ", pinned)
}, [filterCon, props.tagList])

Loading…
Cancel
Save