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
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
} from '@elastic/eui'
import React, { useState } from 'react'
import { useDispatch, useSelector } from 'react-redux'
import cx from 'classnames'
import {
fetchInstancesAction,
importInstancesSelector,
Expand All @@ -24,6 +25,7 @@ import {
} from 'uiSrc/slices/instances/instances'
import { sendEventTelemetry, TelemetryEvent } from 'uiSrc/telemetry'
import { Nullable } from 'uiSrc/utils'

import ResultsLog from './components/ResultsLog'

import styles from './styles.module.scss'
Expand Down Expand Up @@ -72,7 +74,7 @@ const ImportDatabasesDialog = ({ onClose }: Props) => {

const isShowForm = !loading && !data && !error
return (
<EuiModal onClose={handleOnClose} className={styles.modal} data-testid="import-dbs-dialog">
<EuiModal onClose={handleOnClose} className={cx(styles.modal, { [styles.result]: !!data })} data-testid="import-dbs-dialog">
<EuiModalHeader>
<EuiModalHeaderTitle>
<EuiTitle size="xs" data-testid="import-dbs-dialog-title">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const ResultsLog = ({ data }: Props) => {

const CollapsibleNavTitle = ({ title, length = 0 }: { title: string, length: number }) => (
<div className={styles.collapsibleNavTitle}>
<span data-testid="nav-group-title">{title}</span>
<span data-testid="nav-group-title">{title}:</span>
<span data-testid="number-of-dbs">{length}</span>
</div>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@
max-width: 700px !important;
min-height: 270px !important;

&.result {
width: 500px !important;

@media screen and (min-width: 1024px) {
width: 700px !important;
min-width: 700px !important;
}
}

:global {
.euiModalHeader {
padding: 4px 42px 20px 30px;
Expand Down