Skip to content

Commit d476716

Browse files
committed
#6 Simplify CSS: don't use min-height
1 parent 356f156 commit d476716

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

dist/js/card.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/mix-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"/js/card.js": "/js/card.js?id=a9bc40bde6cb473bb382"
2+
"/js/card.js": "/js/card.js?id=f3dee4c8ebf64203b09e"
33
}

resources/js/components/Card.vue

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
</div>
55
</div>
66

7-
<card v-else class="htmlCard htmlCard--hasDefaultHeight" :class="cardClassList">
7+
<card v-else class="htmlCard" :class="cardClassList">
88
<div class="px-3 py-3">
99
<div v-html="card.content" class="htmlCard__content">
1010
</div>
@@ -31,16 +31,10 @@
3131
</script>
3232

3333
<style>
34-
.htmlCard__content > p {
35-
margin-bottom: 1em;
36-
}
37-
</style>
38-
39-
<style scoped>
4034
.htmlCard {
4135
height: auto;
4236
}
43-
.htmlCard--hasDefaultHeight {
44-
min-height: 150px;
37+
.htmlCard__content > p:not(:last-child) {
38+
margin-bottom: 1em;
4539
}
4640
</style>

0 commit comments

Comments
 (0)