Skip to content

Commit d41924a

Browse files
committed
fix: wrap EventCard title and CarDetail comment
Fixes issue #6
1 parent e33c11c commit d41924a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/frontend/src/components/CarDetail.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import LeaveCarButton from './LeaveCarButton.vue';
66
<template>
77
<div class="m-1">
88
<h5>Driver Comment:</h5>
9-
<p v-if="car!.comment.length != 0">{{ car!.comment }}</p>
9+
<p class="car-comment" v-if="car!.comment.length != 0">{{ car!.comment }}</p>
1010
<p v-else><i>No Comment Provided</i></p>
1111
<h5>Passengers:</h5>
1212
<ul class="no-bullets" v-if="car!.riders.length != 0">
@@ -61,4 +61,7 @@ ul.no-bullets {
6161
padding: 0; /* Remove padding */
6262
margin: 0; /* Remove margins */
6363
}
64+
.car-comment {
65+
white-space: normal;
66+
}
6467
</style>

src/frontend/src/components/EventCard.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,7 @@ export default defineComponent({
4343
.card {
4444
cursor: pointer;
4545
}
46+
.card-title {
47+
white-space: normal;
48+
}
4649
</style>

0 commit comments

Comments
 (0)