-
Notifications
You must be signed in to change notification settings - Fork 81
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
fixes card display without a thumbnail #752
Conversation
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.
Thank you @AllanOXDi! I left a couple of questions as I saw some padding issues in some examples.
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.
@AllanOXDi We can't condition the presence of the thumbnail area by the presence of the thumbnail source and other factors you used to determine whether the area should be displayed. We would loose functionality that shows thumbnail placeholders when a thumbnail source is not available.
The only determining factor is thumbnailDisplay
prop. Basically the idea is quite simple - if the thumbnail area is configured to be present via this prop, is shows no matter whether the thumbnail source is provided. If the thumbnail source is not provided in this case, the thumbnail area shows as a placeholder.
So let's just:
<div
v-if="thumbnailDisplay !== ThumbnailDisplays.NONE"
class="thumbnail"
>
All other conditions need to be reverted.
This is important because we quite frequently display placeholders in Kolibri. One way to observe this would be on playground - try to see what happens when you don't provide thumbnailSrc
but still want to display the thumbnail area via thumbnailDisplay
. Also I'd recommend you try to use #thumbnailPlaceholder
slot.
Again, visual tests will help us greatly one day :) Until then, with every change we will need to manually preview the card in all related modes.
CHANGELOG.md
Outdated
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.
Before merging, would you remove CHANGELOG.md changes from this PR completely and filled in the template in the pull request description instead? The new action will then paste it to CHANGELOG.md from there.
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.
Thank you for the updates @AllanOXDi, all good!
Just two cleanup notes that would be good to push before merging and then feel free to merge.
f9564da
to
4ab4bae
Compare
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.
I will put changes request here temporarily so we don't merge accidentally before changelog.md cleanup finished.
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.
Thank you
Issue addressed
#699
Changelog
KCard
to complete vertical/horizontal layouts with no thumbnailKCard
Testing checklist
Reviewer guidance
After review
CHANGELOG.md
Comments