diff --git a/x-pack/plugins/spaces/public/views/components/space_avatar.js b/x-pack/plugins/spaces/public/views/components/space_avatar.js index 96ed4b59dd5ff..b7908d00f2dde 100644 --- a/x-pack/plugins/spaces/public/views/components/space_avatar.js +++ b/x-pack/plugins/spaces/public/views/components/space_avatar.js @@ -11,15 +11,16 @@ import { } from '@elastic/eui'; import { MAX_SPACE_INITIALS, getSpaceInitials, getSpaceColor } from '../../../common'; -export const SpaceAvatar = (props) => { +export const SpaceAvatar = ({ space, size, ...rest }) => { return ( ); }; diff --git a/x-pack/plugins/spaces/public/views/components/space_card.js b/x-pack/plugins/spaces/public/views/components/space_card.js index d6ab56660ef15..7441366d9206e 100644 --- a/x-pack/plugins/spaces/public/views/components/space_card.js +++ b/x-pack/plugins/spaces/public/views/components/space_card.js @@ -7,9 +7,7 @@ import React from 'react'; import { EuiCard, - EuiText, EuiTextColor, - EuiSpacer, } from '@elastic/eui'; import './space_card.less'; import { @@ -25,23 +23,25 @@ export const SpaceCard = (props) => { return ( ); }; -function renderSpaceTitle(space) { - return ( -
- - -

{space.name}

-
- ); +function renderSpaceAvatar(space) { + return ; } function renderSpaceDescription(space) { - return {space.description}; + let description = space.description; + const needsTruncation = space.description.length > 120; + if (needsTruncation) { + description = ( + {space.description.substr(0, 120) + '…'} + ); + } + return {description}; } diff --git a/x-pack/plugins/spaces/public/views/components/space_card.less b/x-pack/plugins/spaces/public/views/components/space_card.less index 99d75e1f39132..8245a16b9f43c 100644 --- a/x-pack/plugins/spaces/public/views/components/space_card.less +++ b/x-pack/plugins/spaces/public/views/components/space_card.less @@ -1,7 +1,6 @@ -.spaceCard, .euiCard.euiCard--isClickable.spaceCard { - width: 280px; - height: 200px; - min-height: 180px; +.euiCard.euiCard--isClickable.spaceCard { + width: 240px; + min-height: 200px; } .spaceCard .euiCard__content{ diff --git a/x-pack/plugins/spaces/public/views/components/space_cards.js b/x-pack/plugins/spaces/public/views/components/space_cards.js index 329ba37f9926e..5e96bc50cc4e2 100644 --- a/x-pack/plugins/spaces/public/views/components/space_cards.js +++ b/x-pack/plugins/spaces/public/views/components/space_cards.js @@ -19,7 +19,7 @@ export class SpaceCards extends Component { render() { return (
- + {this.props.spaces.map(this.renderSpace)}
diff --git a/x-pack/plugins/spaces/public/views/space_selector/space_selector.js b/x-pack/plugins/spaces/public/views/space_selector/space_selector.js index 9ba63da2f15bc..d0dbc65d4566a 100644 --- a/x-pack/plugins/spaces/public/views/space_selector/space_selector.js +++ b/x-pack/plugins/spaces/public/views/space_selector/space_selector.js @@ -72,32 +72,30 @@ export class SpaceSelector extends Component { return ( - -
+ +
- +

Select your space

- -
- + - + {this.getSearchField()} -

You can change your space at anytime from within Kibana.

+

You can change your space at anytime from within Kibana.

- + @@ -120,7 +118,7 @@ export class SpaceSelector extends Component { return null; } return ( - +