Skip to content

Commit a56f301

Browse files
Adrinlolane4ka
authored andcommitted
fix(ui): config tooltip improvements (#431)
1 parent afaa6c1 commit a56f301

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

Diff for: ui/packages/shared/pages/Configuration/InputWithTooltip/index.tsx

+7-6
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const InputWithTooltip = ({
4444
onChange={onChange}
4545
disabled={disabled}
4646
/>
47-
<Tooltip content={<p className={styles.tooltipText}>{tooltipText()}</p>}>
47+
<Tooltip interactive content={<p>{tooltipText()}</p>}>
4848
<InfoIcon className={styles.infoIcon} />
4949
</Tooltip>
5050
</Box>
@@ -69,12 +69,15 @@ export const InputWithChip = ({
6969
disabled: boolean
7070
}) => {
7171
const classes = useStyles()
72-
72+
7373
return (
7474
<Box mt={2} mb={2}>
7575
<Box display="flex" alignItems="center">
7676
<TextField
77-
className={classNames(!disabled && classes.textField, styles.textField)}
77+
className={classNames(
78+
!disabled && classes.textField,
79+
styles.textField,
80+
)}
7881
variant="outlined"
7982
onChange={onChange}
8083
value={value}
@@ -89,9 +92,7 @@ export const InputWithChip = ({
8992
shrink: true,
9093
}}
9194
/>
92-
<Tooltip
93-
content={<p className={styles.tooltipText}>{tooltipText()}</p>}
94-
>
95+
<Tooltip interactive content={<p>{tooltipText()}</p>}>
9596
<InfoIcon className={styles.infoIcon} />
9697
</Tooltip>
9798
</Box>

Diff for: ui/packages/shared/pages/Configuration/tooltipText.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const tooltipText = {
66
Docker image used to run all database containers – clones, snapshot preparation containers, sync containers.
77
Although such images are based on traditional Docker images for Postgres, DLE expects slightly different behavior: e.g.,
88
Postgres is not the first process used to start container, so Postgres restarts are possible, they do not trigger
9-
container state change. For details, see
9+
container state change. For details, see {' '}
1010
<a target={'_blank'} href={'https://postgres.ai/docs/database-lab/supported-databases'} className={styles.externalLink}>the docs</a>.
1111
</div>
1212
),
@@ -26,7 +26,7 @@ export const tooltipText = {
2626
<div>
2727
Specifies one or more shared libraries (comma-separated list) to be preloaded at Postgres server start
2828
(<a target={'_blank'} href={'hhttps://postgresqlco.nf/doc/en/param/shared_preload_libraries/'} className={styles.externalLink}>details</a>).
29-
If some libraries/extensions are missing, Postgres fails to start, so make sure that
29+
If some libraries/extensions are missing, Postgres fails to start, so make sure that {' '}
3030
<span className={styles.firaCodeFont}>dockerImage</span> used above contains all the needed extensions.
3131
</div>
3232
),
@@ -54,7 +54,7 @@ export const tooltipText = {
5454
<div>
5555
Database name used to connect to the source to run diagnostics queries.
5656
This database is not necesserarily to be copied (another field,
57-
<span className={styles.firaCodeFont}>databases</span>, defines which database to copy).]
57+
{' '}<span className={styles.firaCodeFont}>databases</span>, defines which database to copy).
5858
</div>
5959
),
6060
databases: () => (

0 commit comments

Comments
 (0)