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:
mgabdev 2019-09-10 00:05:37 -04:00
parent 8014a87f85
commit 280895a073
2 changed files with 3 additions and 3 deletions

View File

@ -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) {

View File

@ -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;