mirror of
https://github.com/hyperspacedev/hyperspace
synced 2025-02-03 18:57:38 +01:00
Merge pull request #62 from hyperspacedev/post-cards
Executive merge before release PR
This commit is contained in:
commit
8256b06fa8
@ -84,6 +84,7 @@ export class AppLayout extends Component<any, IAppLayoutState> {
|
||||
})
|
||||
|
||||
this.streamNotifications()
|
||||
|
||||
}
|
||||
|
||||
streamNotifications() {
|
||||
@ -153,7 +154,7 @@ export class AppLayout extends Component<any, IAppLayoutState> {
|
||||
}
|
||||
|
||||
searchForQuery(what: string) {
|
||||
window.location.href = isDesktopApp? "hyperspace://hyperspace/app/index.html#/search?query=" + what: "/#/search?query=" + what;
|
||||
window.location.href = isDesktopApp()? "hyperspace://hyperspace/app/index.html#/search?query=" + what: "/#/search?query=" + what;
|
||||
window.location.reload;
|
||||
}
|
||||
|
||||
|
@ -151,10 +151,15 @@ export class Post extends React.Component<any, IPostState> {
|
||||
<CardActionArea href={status.card.url} target="_blank" rel="noreferrer">
|
||||
<CardContent>
|
||||
<Typography gutterBottom variant="h6" component="h2">{status.card.title}</Typography>
|
||||
<Typography>{status.card.description || "No description provided. Click with caution."}</Typography>
|
||||
<Typography>
|
||||
{
|
||||
status.card.description.slice(0, 500) + (status.card.description.length > 500? "...": "")
|
||||
|| "No description provided. Click with caution."
|
||||
}
|
||||
</Typography>
|
||||
</CardContent>
|
||||
{
|
||||
status.card.image?
|
||||
status.card.image && status.media_attachments.length <= 0?
|
||||
<CardMedia className={classes.postMedia} image={status.card.image}/>: <span/>
|
||||
}
|
||||
<CardContent>
|
||||
|
Loading…
x
Reference in New Issue
Block a user