-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Review card subclass of BlogPost card #1936
Conversation
// @ts-expect-error using own template | ||
export class Review extends BlogPost { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extending a card def and changing one of its templates gives error about "incorrectly extending BlogPost class" "types of property 'isolated' are incompatible"
576a594
to
b12c0a0
Compare
@@ -267,21 +268,19 @@ class BlogAppTemplate extends Component<typeof BlogApp> { | |||
</:contentHeader> | |||
<:grid> | |||
{{#if this.query}} | |||
<div class='content-scroll-container'> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed duplicate scroll-container div (already exists in CardsGrid component)
@@ -225,6 +225,7 @@ class BlogAppTemplate extends Component<typeof BlogApp> { | |||
@title={{or @model.title ''}} | |||
@tagline={{or @model.description ''}} | |||
@thumbnailURL={{or @model.thumbnailURL ''}} | |||
@icon={{@model.constructor.icon}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
option to display card type icon
RatingsSummary
field: now it can display half starsReviewBlog instance with embedded Review card:
Review card isolated template: