Updated status card
Check for if cardImg exists and if is interactive to set image accordingly. Updated action button color to primary as it stands out more.
This commit is contained in:
parent
8014a87f85
commit
280895a073
@ -151,7 +151,7 @@ export default class Card extends React.PureComponent {
|
|||||||
const className = classnames('status-card', {
|
const className = classnames('status-card', {
|
||||||
horizontal,
|
horizontal,
|
||||||
interactive,
|
interactive,
|
||||||
compact: !cardImg,
|
compact: !cardImg && !interactive,
|
||||||
});
|
});
|
||||||
const title = interactive ?
|
const title = interactive ?
|
||||||
<a className='status-card__title' href={card.get('url')} title={card.get('title')} rel='noopener' target='_blank'>
|
<a className='status-card__title' href={card.get('url')} title={card.get('title')} rel='noopener' target='_blank'>
|
||||||
@ -172,7 +172,7 @@ export default class Card extends React.PureComponent {
|
|||||||
);
|
);
|
||||||
|
|
||||||
let embed = '';
|
let embed = '';
|
||||||
let thumbnail = <div style={{ backgroundImage: `url(${cardImg})` }} className='status-card__image-image' />;
|
let thumbnail = card ? <div style={{ backgroundImage: `url(${cardImg})` }} className='status-card__image-image' /> : thumbnail = <div className='status-card__image-image' />;
|
||||||
|
|
||||||
if (interactive) {
|
if (interactive) {
|
||||||
if (embedded) {
|
if (embedded) {
|
||||||
|
@ -2225,7 +2225,7 @@ a.account__display-name {
|
|||||||
button,
|
button,
|
||||||
a {
|
a {
|
||||||
display: inline;
|
display: inline;
|
||||||
color: $secondary-text-color;
|
color: $primary-text-color;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
border: 0;
|
border: 0;
|
||||||
padding: 0 8px;
|
padding: 0 8px;
|
||||||
|
Loading…
Reference in New Issue
Block a user