Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion webview/src/experiments/components/table/Cell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { CellProp, RowProp } from './interfaces'
import { CellRowActionsProps, CellRowActions } from './CellRowActions'
import { CellValue, isValueWithChanges } from './content/Cell'
import { clickAndEnterProps } from '../../../util/props'
import { ErrorTooltip } from '../../../shared/components/errorTooltip/ErrorTooltip'
import { ErrorTooltip } from '../../../shared/components/tooltip/ErrorTooltip'

const cellHasChanges = (cellValue: CellValue) =>
isValueWithChanges(cellValue) ? cellValue.changes : false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import cx from 'classnames'
import React from 'react'
import { CellContents } from './CellContent'
import { ErrorTooltip } from '../../../../shared/components/errorTooltip/ErrorTooltip'
import { ErrorTooltip } from '../../../../shared/components/tooltip/ErrorTooltip'
import styles from '../styles.module.scss'

interface ErrorCellProps {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { RefreshButton } from '../../../shared/components/button/RefreshButton'
import { sendMessage } from '../../../shared/vscode'
import { zoomPlot } from '../messages'
import { Error } from '../../../shared/components/icons'
import { ErrorTooltip } from '../../../shared/components/errorTooltip/ErrorTooltip'
import { ErrorTooltip } from '../../../shared/components/tooltip/ErrorTooltip'

type ComparisonTableCellProps = {
path: string
Expand Down
15 changes: 0 additions & 15 deletions webview/src/shared/components/errorTooltip/styles.module.scss

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { ReactElement } from 'react'
import styles from './styles.module.scss'
import Tooltip from './Tooltip'
import { Error } from '../icons'
import Tooltip from '../tooltip/Tooltip'

export const ErrorTooltip: React.FC<{
error?: string
Expand Down
16 changes: 16 additions & 0 deletions webview/src/shared/components/tooltip/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,19 @@ $font: var(--vscode-font-family);
min-height: 16px;
}
}

.errorIcon {
margin-left: 6px;
margin-top: 3px;
}

.errorTooltip {
white-space: pre-wrap;
display: flex;
gap: 4px;

svg {
min-width: 16px;
min-height: 16px;
}
}