Skip to content

Commit 19a90ef

Browse files
committed
Fix a text alignment bug
1 parent b3b9772 commit 19a90ef

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,6 @@ export default Vue.extend({
5252
{
5353
timestamp: Date.parse('2021-05-28T20:20:46.444Z'),
5454
title: 'Voluptate pariatur dolore laborum eu'
55-
},
56-
{
57-
timestamp: Date.parse('2021-01-28T20:20:46.444Z'),
58-
title: 'Mollit aliqua velit nostrud ipsum',
59-
content: 'Magna officia est fugiat sit esse consectetur labore elit nulla duis consectetur. Et sit velit ad ipsum officia.'
6055
}
6156
]
6257
}

src/bootstrap-vue-timeline.vue

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default /*#__PURE__*/{
1818
variant: String,
1919
},
2020
methods: {
21-
bsVariant() {
21+
bootstrapVariant() {
2222
return this.variant || 'primary'
2323
},
2424
orderedItems() {
@@ -61,15 +61,15 @@ export default /*#__PURE__*/{
6161
:key="item.timestamp + item.title"
6262
class="flex-column align-items-start"
6363
>
64-
<div :class="`item-head ${bsVariant()}`" />
64+
<div :class="`item-head ${bootstrapVariant()}`" />
6565
<div
6666
v-if="index !== itemsCount() - 1"
6767
class="item-tail"
6868
/>
6969

7070
<b-spinner
7171
v-if="item.spinner"
72-
:variant="bsVariant()"
72+
:variant="bootstrapVariant()"
7373
class="ml-4"
7474
/>
7575

@@ -94,7 +94,7 @@ export default /*#__PURE__*/{
9494
</b-tooltip>
9595
</div>
9696

97-
<small class="mb-1">
97+
<small class="mb-1 item-description">
9898
{{ item.content || '' }}
9999
</small>
100100
</div>
@@ -134,6 +134,11 @@ export default /*#__PURE__*/{
134134
word-break: break-word;
135135
}
136136
137+
.item-description {
138+
display: block;
139+
text-align: left;
140+
}
141+
137142
.primary {
138143
background-color: #007bff;
139144
color: #007bff;

0 commit comments

Comments
 (0)