switch instead of check for gridview:Wq

`
pull/5672/head
lianahus 4 weeks ago committed by Aniket
parent 74df73b3b9
commit 9bc69cf4d0
  1. 2
      apps/remix-ide/src/app/providers/style/environment-explorer.css
  2. 4
      libs/remix-ui/grid-view/src/lib/remix-ui-grid-cell.css
  3. 4
      libs/remix-ui/grid-view/src/lib/remix-ui-grid-cell.tsx

@ -1,5 +1,5 @@
.EECellStyle { .EECellStyle {
min-height: 6rem; min-height: 6rem;
max-width: 12rem; max-width: 12rem;
min-width: 10rem; min-width: 12rem;
} }

@ -28,8 +28,8 @@
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
position: relative; position: relative;
right: 0.9rem; right: 2.1rem;
top: -0.7rem; top: 4.7rem;
background: transparent; background: transparent;
z-index: 1000; z-index: 1000;
} }

@ -103,7 +103,7 @@ export const RemixUIGridCell = (props: RemixUIGridCellProps) => {
tooltipText={ props.titleTooltip ? props.titleTooltip : props.title } tooltipText={ props.titleTooltip ? props.titleTooltip : props.title }
> >
<label <label
className='m-0 p-0 text-uppercase align-items-left font-weight-bold text-truncate overflow-hidden whitespace-nowra' className='m-0 p-0 text-uppercase align-items-left font-weight-bold text-truncate overflow-hidden whitespace-nowrap'
>{ props.title } >{ props.title }
</label> </label>
</CustomTooltip> </CustomTooltip>
@ -113,7 +113,7 @@ export const RemixUIGridCell = (props: RemixUIGridCellProps) => {
</div> </div>
</div> </div>
{ filterCon.showPin && <button { filterCon.showPin && <button
className={`${pinned ? 'fa-circle-check text-dark' : 'fa-circle text-secondary'}` + ` fa-regular border-0 mb-0 remixui_grid_cell_pin`} 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`}
style={{ fontSize: 'large' }} style={{ fontSize: 'large' }}
data-id={`${pinned ? `${props.id}-pinned` : `${props.id}-unpinned`}`} data-id={`${pinned ? `${props.id}-pinned` : `${props.id}-unpinned`}`}
onClick={async () => { onClick={async () => {

Loading…
Cancel
Save