perf(ui): avoid blank space at the bottom of the homepage preview image
When the title of the post has a line break, there will be a blank space at the bottom of the preview image.
This commit is contained in:
parent
c4da99c7ea
commit
ce2f6f5abe
2 changed files with 2 additions and 2 deletions
|
@ -65,7 +65,7 @@ refactor: true
|
||||||
|
|
||||||
{% assign alt = post.image.alt | default: 'Preview Image' %}
|
{% assign alt = post.image.alt | default: 'Preview Image' %}
|
||||||
|
|
||||||
<img src="{{ src }}" w="15" h="8" alt="{{ alt }}" {{ lqip }}>
|
<img src="{{ src }}" w="17" h="10" alt="{{ alt }}" {{ lqip }}>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div class="card-body d-flex flex-column">
|
<div class="card-body d-flex flex-column">
|
||||||
|
|
|
@ -148,7 +148,7 @@
|
||||||
.card {
|
.card {
|
||||||
.preview-img {
|
.preview-img {
|
||||||
width: 20rem;
|
width: 20rem;
|
||||||
height: 11.5rem; // can hold 2 lines each for title and content
|
height: 11.55rem; // can hold 2 lines each for title and content
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-body {
|
.card-body {
|
||||||
|
|
Loading…
Reference in a new issue