Commit 280895a0 authored by mgabdev's avatar mgabdev

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.
parent 8014a87f
......@@ -151,7 +151,7 @@ export default class Card extends React.PureComponent {
const className = classnames('status-card', {
horizontal,
interactive,
compact: !cardImg,
compact: !cardImg && !interactive,
});
const title = interactive ?
<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 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 (embedded) {
......
......@@ -2225,7 +2225,7 @@ a.account__display-name {
button,
a {
display: inline;
color: $secondary-text-color;
color: $primary-text-color;
background: transparent;
border: 0;
padding: 0 8px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment