Skip to content

Commit

Permalink
Set popover icons to placement auto
Browse files Browse the repository at this point in the history
Former-commit-id: 49e9a7f18cc1fd9e48e6a8a54b451dc786132386
  • Loading branch information
rmathis committed Aug 4, 2022
1 parent 61bd53c commit 372bac2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ui/src/app/form/component/InfoIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Button from 'react-bootstrap/Button';
import Translate from '../../i18n/components/translate';
import { useTranslator } from '../../i18n/hooks';

export function InfoIcon ({ value = '', placement='left', ...props }) {
export function InfoIcon ({ value = '', placement='auto', ...props }) {
const translate = useTranslator();
return(
<OverlayTrigger trigger={['hover', 'focus', 'click']} placement={placement} overlay={(
Expand Down
2 changes: 1 addition & 1 deletion ui/src/app/form/component/fields/DescriptionField.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { InfoIcon } from "../InfoIcon";

const DescriptionField = ({ description }) => {
if (description) {
return <InfoIcon value={description} />;
return <InfoIcon value={description} placement="auto" />;
}

return null;
Expand Down

0 comments on commit 372bac2

Please sign in to comment.