Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit bc8c19a

Browse files
committed
add responsive property to table
1 parent ddf7e9f commit bc8c19a

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

‎src/components/MarkersList.vue‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<template>
22
<div>
33
<h3 class="heading">List of Markers</h3>
4-
<table class="table table-striped" v-if="markersList.length">
4+
<div class="table-responsive" v-if="markersList.length">
5+
<table class="table table-striped">
56
<thead>
67
<tr>
78
<th scope="col">Marker</th>
@@ -23,12 +24,14 @@
2324
</td>
2425
<td>
2526
<input
27+
class="input-position"
2628
v-model.number="item.position.lat"
2729
type="number"
2830
>
2931
</td>
3032
<td>
3133
<input
34+
class="input-position"
3235
v-model.number="item.position.lng"
3336
type="number"
3437
>
@@ -65,7 +68,8 @@
6568
</td>
6669
</tr>
6770
</tbody>
68-
</table>
71+
</table>
72+
</div>
6973
<div class="alert alert-danger" v-else>
7074
You have no markers!
7175
</div>
@@ -95,4 +99,7 @@ export default {
9599
.table-data {
96100
text-align: center
97101
}
102+
.input-position {
103+
width: 100px
104+
}
98105
</style>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /