From 42402a1110126aed5aab308d30b8b4c18149c701 Mon Sep 17 00:00:00 2001 From: lianahus Date: Wed, 26 Jun 2024 17:26:43 +0200 Subject: [PATCH] fixed pinns --- apps/remix-ide/src/app/providers/environment-explorer.tsx | 1 + apps/remix-ide/src/blockchain/blockchain.tsx | 2 +- apps/remix-ide/src/remixAppManager.js | 2 -- libs/remix-ui/grid-view/src/lib/remix-ui-grid-cell.css | 8 ++++---- libs/remix-ui/grid-view/src/lib/remix-ui-grid-cell.tsx | 2 +- 5 files changed, 7 insertions(+), 8 deletions(-) diff --git a/apps/remix-ide/src/app/providers/environment-explorer.tsx b/apps/remix-ide/src/app/providers/environment-explorer.tsx index d330ca21d8..ded0c1bf12 100644 --- a/apps/remix-ide/src/app/providers/environment-explorer.tsx +++ b/apps/remix-ide/src/app/providers/environment-explorer.tsx @@ -106,6 +106,7 @@ export class EnvironmentExplorer extends ViewPlugin { return { const providerName = await this.call('blockchain', 'getProvider') diff --git a/apps/remix-ide/src/blockchain/blockchain.tsx b/apps/remix-ide/src/blockchain/blockchain.tsx index bb658fdbbf..a13222004d 100644 --- a/apps/remix-ide/src/blockchain/blockchain.tsx +++ b/apps/remix-ide/src/blockchain/blockchain.tsx @@ -531,7 +531,7 @@ export class Blockchain extends Plugin { changeExecutionContext(context, confirmCb, infoCb, cb) { if (context.context === 'item-another-chain') { this.call('manager', 'activatePlugin', 'environmentExplorer').then(() => this.call('tabs', 'focus', 'environmentExplorer')) - } else { + } else { return this.executionContext.executionContextChange(context, null, confirmCb, infoCb, cb) } } diff --git a/apps/remix-ide/src/remixAppManager.js b/apps/remix-ide/src/remixAppManager.js index bdfd9ecf06..3b02c939d5 100644 --- a/apps/remix-ide/src/remixAppManager.js +++ b/apps/remix-ide/src/remixAppManager.js @@ -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'] diff --git a/libs/remix-ui/grid-view/src/lib/remix-ui-grid-cell.css b/libs/remix-ui/grid-view/src/lib/remix-ui-grid-cell.css index 46e31866a8..ccf154ab25 100644 --- a/libs/remix-ui/grid-view/src/lib/remix-ui-grid-cell.css +++ b/libs/remix-ui/grid-view/src/lib/remix-ui-grid-cell.css @@ -24,11 +24,11 @@ outline: none; } .remixui_grid_cell_pin { - width: 1rem; + 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 { diff --git a/libs/remix-ui/grid-view/src/lib/remix-ui-grid-cell.tsx b/libs/remix-ui/grid-view/src/lib/remix-ui-grid-cell.tsx index e3d979e0cb..f8e13c2788 100644 --- a/libs/remix-ui/grid-view/src/lib/remix-ui-grid-cell.tsx +++ b/libs/remix-ui/grid-view/src/lib/remix-ui-grid-cell.tsx @@ -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])