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}
tooltipId={`${name}Tooltip`}
placement={tooltipPlacement}
>
{childJSX}
</CustomTooltip>

@ -977,7 +977,7 @@ export const CompilerContainer = (props: CompilerContainerProps) => {
disabled={(configFilePath === '' && state.useFileConfiguration) || disableCompileButton}
>
<CustomTooltip
placement="auto"
placement="right"
tooltipId="overlay-tooltip-compile-run"
tooltipText={<div className="text-left">
{!(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>
</button>
<CustomTooltip
placement="auto"
placement="right"
tooltipId="overlay-tooltip-compile-run-doc"
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>

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

@ -431,6 +431,7 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
onClick={event => handleCheckSingle(event, item._index)}
checked={categoryIndex.includes(item._index.toString())}
onChange={() => {}}
title={item.description}
/>
</div>
)
@ -458,7 +459,7 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
expand={false}
>
<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 className="w-100 d-block px-2 my-1 entries collapse multi-collapse" id={`heading${categoryId}`}>
{category.map((item, i) => {

Loading…
Cancel
Save