partial: css update

This commit is contained in:
Rafael Taranto 2025-04-21 09:12:41 +01:00
parent 4f9b23b108
commit c6c3feb3b4
213 changed files with 301 additions and 279 deletions

View file

@ -1,5 +1,5 @@
import { Box } from '@mui/material'
import MAutocomplete from '@mui/lab/Autocomplete'
import MAutocomplete from '@mui/material/Autocomplete'
import sort from 'match-sorter'
import * as R from 'ramda'
import React from 'react'
@ -100,7 +100,7 @@ const Autocomplete = ({
/>
)
}}
renderOption={props => {
renderOption={(iprops, props) => {
if (!props.warning && !props.warningMessage)
return R.path([labelProp])(props)
@ -120,17 +120,19 @@ const Autocomplete = ({
)
return (
<Box
width="100%"
display="flex"
flexDirection="row"
justifyContent="space-between"
alignItems="center">
<Box>{R.path([labelProp])(props)}</Box>
<HoverableTooltip parentElements={hoverableElement} width={250}>
<P>{props.warningMessage}</P>
</HoverableTooltip>
</Box>
<li {...iprops}>
<Box
width="100%"
display="flex"
flexDirection="row"
justifyContent="space-between"
alignItems="center">
<Box>{R.path([labelProp])(props)}</Box>
<HoverableTooltip parentElements={hoverableElement} width={250}>
<P>{props.warningMessage}</P>
</HoverableTooltip>
</Box>
</li>
)
}}
/>