Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b485a90

Browse filesBrowse files
committed
Merge branch '431-config-tooltip-fixes' into 'master'
fix(ui): config tooltip improvements (#431) Closes #431 See merge request postgres-ai/database-lab!613
2 parents afaa6c1 + a56f301 commit b485a90
Copy full SHA for b485a90

File tree

Expand file treeCollapse file tree

2 files changed

+10
-9
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+10
-9
lines changed

‎ui/packages/shared/pages/Configuration/InputWithTooltip/index.tsx

Copy file name to clipboardExpand all lines: ui/packages/shared/pages/Configuration/InputWithTooltip/index.tsx
+7-6Lines changed: 7 additions & 6 deletions
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>

‎ui/packages/shared/pages/Configuration/tooltipText.tsx

Copy file name to clipboardExpand all lines: ui/packages/shared/pages/Configuration/tooltipText.tsx
+3-3Lines changed: 3 additions & 3 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.