Import space selector styles (#64656)

This commit is contained in:
Larry Gregory 2020-05-04 19:56:38 -04:00 committed by GitHub
parent 2d4dc801c3
commit fb79865aa0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 16 additions and 22 deletions

View file

@ -11,6 +11,4 @@
// spcChart__legend-isLoading
@import './management/index';
@import './nav_control/index';
@import './space_selector/index';
@import './copy_saved_objects_to_space/index';

View file

@ -1,2 +0,0 @@
@import './components/index';
@import './nav_control';

View file

@ -1,3 +0,0 @@
.kbnGlobalNavLink__icon .spaceNavGraphic {
margin-top: 0.5em;
}

View file

@ -1,2 +0,0 @@
@import './spaces_description';
@import './spaces_menu';

View file

@ -4,6 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import './spaces_description.scss';
import { EuiContextMenuPanel, EuiText } from '@elastic/eui';
import React, { FC } from 'react';
import { Capabilities, ApplicationStart } from 'src/core/public';

View file

@ -4,6 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import './spaces_menu.scss';
import {
EuiContextMenuItem,
EuiContextMenuPanel,

View file

@ -140,7 +140,7 @@ export class NavControlPopover extends Component<Props, State> {
}
return this.getButton(
<SpaceAvatar space={activeSpace} size={'s'} className={'spaceNavGraphic'} />,
<SpaceAvatar space={activeSpace} size={'s'} />,
(activeSpace as Space).name
);
};

View file

@ -1,2 +0,0 @@
@import './space_selector';
@import './components/index';

View file

@ -1,2 +0,0 @@
@import './space_card';
@import './space_cards';

View file

@ -1,8 +0,0 @@
.euiCard.euiCard--isClickable.spaceCard {
width: $euiSizeL * 10;
min-height: 200px;
}
.spaceCard .euiCard__content{
overflow: hidden;
}

View file

@ -0,0 +1,9 @@
.spaceCard {
width: $euiSizeL * 10 !important;
min-height: $euiSize * 12.5; // 200px
// SASSTODO: Fix EuiCard to truncate or forcewrap long text
.euiCard__content{
overflow: hidden;
}
}

View file

@ -4,6 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import './space_card.scss';
import { EuiCard } from '@elastic/eui';
import React from 'react';
import { addSpaceIdToPath, ENTER_SPACE_PATH } from '../../../common';

View file

@ -4,6 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
import './space_cards.scss';
import { EuiFlexGroup, EuiFlexItem } from '@elastic/eui';
import React, { Component } from 'react';
import { Space } from '../../../common/model/space';

View file

@ -4,6 +4,8 @@
* you may not use this file except in compliance with the Elastic License.
*/
import './space_selector.scss';
import {
EuiFieldSearch,
EuiFlexGroup,