[Doc-Table] Import styles into JS where possible (#65329)

Fixes styles and overflow table vis
This commit is contained in:
Caroline Horn 2020-05-06 11:25:46 -04:00 committed by GitHub
parent 3e9a12cf33
commit e5abec1922
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 8 additions and 11 deletions

View file

@ -1,3 +1,2 @@
@import 'directives/index';
@import 'doc_table/index';
@import 'context/index';

View file

@ -2,6 +2,7 @@
* 1. Stack content vertically so the table can scroll when its constrained by a fixed container height.
*/
doc-table {
@include euiScrollBar;
overflow: auto;
flex: 1 1 100%;
flex-direction: column; /* 1 */

View file

@ -22,6 +22,7 @@ import { dispatchRenderComplete } from '../../../../../kibana_utils/public';
// @ts-ignore
import { getLimitedSearchResultsMessage } from './doc_table_strings';
import { getServices } from '../../../kibana_services';
import './index.scss';
export interface LazyScope extends ng.IScope {
[key: string]: any;

View file

@ -1,2 +1,4 @@
@import '../../mixins';
@import 'doc_table';
@import 'components/index';

View file

@ -1,3 +0,0 @@
@import 'doc_viewer/index';
@import 'fetch_error/index';
@import 'sidebar/index';

View file

@ -1 +0,0 @@
@import 'doc_viewer';

View file

@ -16,6 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
import './doc_viewer.scss';
import React from 'react';
import { EuiTabbedContent } from '@elastic/eui';
import { getDocViewsRegistry } from '../../../kibana_services';

View file

@ -1 +0,0 @@
@import 'fetch_error';

View file

@ -16,6 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
import './fetch_error.scss';
import React, { Fragment } from 'react';
import { FormattedMessage, I18nProvider } from '@kbn/i18n/react';
import { EuiFlexGroup, EuiFlexItem, EuiCallOut, EuiCodeBlock, EuiSpacer } from '@elastic/eui';

View file

@ -1 +0,0 @@
@import './_sidebar';

View file

@ -16,6 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
import './discover_sidebar.scss';
import React, { useCallback, useEffect, useState, useMemo } from 'react';
import { i18n } from '@kbn/i18n';
import { EuiButtonIcon, EuiTitle } from '@elastic/eui';

View file

@ -1,2 +0,0 @@
@import 'embeddables';

View file

@ -16,6 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
import './search_embeddable.scss';
import angular from 'angular';
import _ from 'lodash';
import * as Rx from 'rxjs';

View file

@ -10,6 +10,4 @@
// monChart__legend--small
// monChart__legend-isLoading
@import 'components/index';
@import 'angular/index';
@import 'embeddable/index';