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 return <RemixUIGridCell
plugin={this} plugin={this}
title={provider.name} title={provider.name}
pinned={this.pinnedProviders.includes(provider.name)} pinned={this.pinnedProviders.includes(provider.name)}
pinStateCallback={async (pinned: boolean) => { pinStateCallback={async (pinned: boolean) => {
const providerName = await this.call('blockchain', 'getProvider') const providerName = await this.call('blockchain', 'getProvider')

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

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

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

Loading…
Cancel
Save