fix tooltip story

pull/5370/head
Joseph Izang 2 years ago
parent fd40600770
commit 5123617beb
  1. 1
      libs/remix-ui/checkbox/src/lib/remix-ui-checkbox.tsx
  2. 4
      libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx
  3. 4
      libs/remix-ui/static-analyser/src/lib/Button/StaticAnalyserButton.tsx
  4. 3
      libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx

@ -59,7 +59,6 @@ export const RemixUiCheckbox = ({
tooltipText={title} tooltipText={title}
tooltipId={`${name}Tooltip`} tooltipId={`${name}Tooltip`}
placement={tooltipPlacement} placement={tooltipPlacement}
> >
{childJSX} {childJSX}
</CustomTooltip> </CustomTooltip>

@ -977,7 +977,7 @@ export const CompilerContainer = (props: CompilerContainerProps) => {
disabled={(configFilePath === '' && state.useFileConfiguration) || disableCompileButton} disabled={(configFilePath === '' && state.useFileConfiguration) || disableCompileButton}
> >
<CustomTooltip <CustomTooltip
placement="auto" placement="right"
tooltipId="overlay-tooltip-compile-run" tooltipId="overlay-tooltip-compile-run"
tooltipText={<div className="text-left"> tooltipText={<div className="text-left">
{!(configFilePath === '' && state.useFileConfiguration) && <div><b>Ctrl+Shift+S</b> for compiling and script execution</div>} {!(configFilePath === '' && state.useFileConfiguration) && <div><b>Ctrl+Shift+S</b> for compiling and script execution</div>}
@ -990,7 +990,7 @@ export const CompilerContainer = (props: CompilerContainerProps) => {
</CustomTooltip> </CustomTooltip>
</button> </button>
<CustomTooltip <CustomTooltip
placement="auto" placement="right"
tooltipId="overlay-tooltip-compile-run-doc" tooltipId="overlay-tooltip-compile-run-doc"
tooltipText={<div className="text-left p-2"> tooltipText={<div className="text-left p-2">
<div>Choose the script to execute right after compilation by adding the `dev-run-script` natspec tag, as in:</div> <div>Choose the script to execute right after compilation by adding the `dev-run-script` natspec tag, as in:</div>

@ -19,12 +19,12 @@ const StaticAnalyserButton = ({
return ( return (
<button className={classList} disabled={disabled} onClick={onClick}> <button className={classList} disabled={disabled} onClick={onClick}>
<CustomTooltip <CustomTooltip
placement="bottom-start" placement="right-start"
tooltipId="ssaRunButtonTooltip" tooltipId="ssaRunButtonTooltip"
tooltipClasses="text-nowrap" tooltipClasses="text-nowrap"
tooltipText={title} tooltipText={title}
> >
<span> <span className="pl-3 pr-4">
{buttonText} {buttonText}
</span> </span>
</CustomTooltip> </CustomTooltip>

@ -431,6 +431,7 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
onClick={event => handleCheckSingle(event, item._index)} onClick={event => handleCheckSingle(event, item._index)}
checked={categoryIndex.includes(item._index.toString())} checked={categoryIndex.includes(item._index.toString())}
onChange={() => {}} onChange={() => {}}
title={item.description}
/> />
</div> </div>
) )
@ -458,7 +459,7 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
expand={false} expand={false}
> >
<div> <div>
<RemixUiCheckbox onClick={() => handleCheckOrUncheckCategory(category)} id={categoryId} inputType="checkbox" label={`Select ${category[0].categoryDisplayName}`} name='checkCategoryEntry' checked={category.map(x => x._index.toString()).every(el => categoryIndex.includes(el))} onChange={() => {}}/> <RemixUiCheckbox onClick={() => handleCheckOrUncheckCategory(category)} id={categoryId} inputType="checkbox" label={`Select ${category[0].categoryDisplayName}`} name='checkCategoryEntry' checked={category.map(x => x._index.toString()).every(el => categoryIndex.includes(el))} onChange={() => {}} title={category[0].categoryDisplayName} tooltipPlacement="right"/>
</div> </div>
<div className="w-100 d-block px-2 my-1 entries collapse multi-collapse" id={`heading${categoryId}`}> <div className="w-100 d-block px-2 my-1 entries collapse multi-collapse" id={`heading${categoryId}`}>
{category.map((item, i) => { {category.map((item, i) => {

Loading…
Cancel
Save