Skip to content

Commit feeac1b

Browse files
LianaHusAniket-Engg
authored andcommitted
fixed switches
1 parent d3693fc commit feeac1b

File tree

4 files changed

+13
-15
lines changed

4 files changed

+13
-15
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.EECellStyle {
2-
min-height: 6rem;
2+
min-height: 7rem;
33
max-width: 12rem;
44
min-width: 12rem;
55
}

libs/remix-ui/grid-view/src/lib/remix-ui-grid-cell.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@
2727
.remixui_grid_cell_pin {
2828
width: 1rem;
2929
height: 1rem;
30-
position: relative;
31-
right: 2.1rem;
32-
top: 4.7rem;
3330
background: transparent;
3431
z-index: 1000;
3532
}

libs/remix-ui/grid-view/src/lib/remix-ui-grid-cell.tsx

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export const RemixUIGridCell = (props: RemixUIGridCellProps) => {
8686
{ anyEnabled && <div className='mr-2 mt-3 pb-1 d-flex flex-column'>
8787
<div className='d-flex flex-grid'>
8888
<div className={ `${pinned ? "" : "border-dark "}` + "d-flex mx-0 p-2 bg-light border border-secondary remixui_grid_cell_container " + props.classList || ''} data-id={"remixUIGS" + props.title}>
89-
<div className="d-flex remixui_grid_cell w-100 flex-column">
89+
<div className="d-flex remixui_grid_cell w-100 space-between justify-content-between flex-column">
9090
{ !props.hideTitle && <div className='d-flex flex-row pb-1 mb-1 align-items-end' style={{ minWidth: '8rem', height: '1rem' }}>
9191
{ props.logo ? props.logoURL !== '' ?
9292
<a href={props.logoURL} target="__blank">
@@ -110,17 +110,18 @@ export const RemixUIGridCell = (props: RemixUIGridCellProps) => {
110110
}
111111
</div> }
112112
{ props.children }
113+
{ filterCon.showPin && <button
114+
className={`${pinned ? 'fas fa-toggle-on fa-lg text-dark' : 'fas fa-toggle-off fa-lg text-secondary'}` + ` fa-regular border-0 p-0 mt-2 align-self-end mr-1 remixui_grid_cell_pin`}
115+
style={{ fontSize: 'large' }}
116+
data-id={`${pinned ? `${props.id}-pinned` : `${props.id}-unpinned`}`}
117+
onClick={async () => {
118+
if (!props.pinStateCallback) setPinned(!pinned)
119+
if (await props.pinStateCallback(!pinned)) setPinned(!pinned)
120+
}}
121+
></button>}
113122
</div>
114123
</div>
115-
{ filterCon.showPin && <button
116-
className={`${pinned ? 'fas fa-toggle-on fa-lg text-dark' : 'fas fa-toggle-off fa-lg text-secondary'}` + ` fa-regular border-0 mb-0 remixui_grid_cell_pin`}
117-
style={{ fontSize: 'large' }}
118-
data-id={`${pinned ? `${props.id}-pinned` : `${props.id}-unpinned`}`}
119-
onClick={async () => {
120-
if (!props.pinStateCallback) setPinned(!pinned)
121-
if (await props.pinStateCallback(!pinned)) setPinned(!pinned)
122-
}}
123-
></button>}
124+
124125
{ props.tagList && <div className={`d-flex flex-column align-items-begin ` +`${filterCon.showPin ? 'remixui_grid_cell_tags' : 'remixui_grid_cell_tags_no_pin'}`}>
125126
{ Object.keys(props.tagList).map((key) => (
126127
filterCon.keyValueMap[props.tagList[key]]?.enabled && (

libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ export const CompilerContainer = (props: CompilerContainerProps) => {
486486
compileIcon.current.classList.remove('remixui_spinningIcon')
487487
compileIcon.current.classList.remove('remixui_bouncingIcon')
488488
if (!state.autoCompile || (state.autoCompile && state.matomoAutocompileOnce)) {
489-
_paq.push(['trackEvent', 'compiler', 'compiled', 'solCompilationFinishedTriggeredByUser')
489+
_paq.push(['trackEvent', 'compiler', 'compiled', 'solCompilationFinishedTriggeredByUser'])
490490
_paq.push(['trackEvent', 'compiler', 'compiled', 'with_config_file_' + state.useFileConfiguration])
491491
_paq.push(['trackEvent', 'compiler', 'compiled', 'with_version_' + _retrieveVersion()])
492492
if (state.autoCompile && state.matomoAutocompileOnce) {

0 commit comments

Comments
 (0)