Skip to content

Commit 7232cc0

Browse files
committed
fix(docs): provider support overflow
1 parent 3e94bbc commit 7232cc0

File tree

1 file changed

+92
-79
lines changed

1 file changed

+92
-79
lines changed

docs/components/ProviderSupport.vue

Lines changed: 92 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -1,84 +1,86 @@
11
<template>
22
<div>
3-
<table>
4-
<thead>
5-
<tr>
6-
<th scope="col">Provider</th>
7-
<th v-for="feature in features" :key="feature" scope="col">
8-
{{ feature }}
9-
</th>
10-
</tr>
11-
</thead>
12-
<tbody>
13-
<tr v-for="provider in providers" :key="provider.name">
14-
<th scope="row">{{ provider.name }}</th>
15-
<td v-for="feature in features" :key="feature">
16-
<div class="flex justify-center">
17-
<svg
18-
v-if="provider[feature.toLowerCase()] === 'supported'"
19-
class="w-6 h-6"
20-
viewBox="0 0 24 24"
21-
fill="none"
22-
xmlns="http://www.w3.org/2000/svg"
23-
>
24-
<path
25-
d="M20 6L9 17L4 12"
26-
stroke="green"
27-
stroke-width="2"
28-
stroke-linecap="round"
29-
stroke-linejoin="round"
30-
/>
31-
</svg>
32-
<svg
33-
v-else-if="provider[feature.toLowerCase()] === 'planned'"
34-
class="w-6 h-6"
35-
viewBox="0 0 24 24"
36-
fill="none"
37-
xmlns="http://www.w3.org/2000/svg"
38-
>
39-
<circle
40-
cx="12"
41-
cy="12"
42-
r="8"
43-
stroke="orange"
44-
stroke-width="2"
45-
/>
46-
</svg>
47-
<svg
48-
v-else-if="provider[feature.toLowerCase()] === 'adapted'"
49-
class="w-6 h-6"
50-
viewBox="0 0 24 24"
51-
fill="none"
52-
xmlns="http://www.w3.org/2000/svg"
53-
>
54-
<path
55-
d="M12 3v3m0 12v3M3 12h3m12 0h3"
56-
stroke="green"
57-
stroke-width="2"
58-
stroke-linecap="round"
59-
/>
60-
<circle cx="12" cy="12" r="4" stroke="green" stroke-width="2" />
61-
</svg>
62-
<svg
63-
v-else
64-
class="w-6 h-6"
65-
viewBox="0 0 24 24"
66-
fill="none"
67-
xmlns="http://www.w3.org/2000/svg"
68-
>
69-
<path
70-
d="M18 6L6 18M6 6l12 12"
71-
stroke="red"
72-
stroke-width="2"
73-
stroke-linecap="round"
74-
stroke-linejoin="round"
75-
/>
76-
</svg>
77-
</div>
78-
</td>
79-
</tr>
80-
</tbody>
81-
</table>
3+
<div style="overflow-x: auto !important; display: block !important; width: 100% !important;">
4+
<table style="width: 100% !important; min-width: 850px !important;">
5+
<thead>
6+
<tr>
7+
<th scope="col">Provider</th>
8+
<th v-for="feature in features" :key="feature" scope="col">
9+
{{ feature }}
10+
</th>
11+
</tr>
12+
</thead>
13+
<tbody>
14+
<tr v-for="provider in providers" :key="provider.name">
15+
<th scope="row">{{ provider.name }}</th>
16+
<td v-for="feature in features" :key="feature">
17+
<div class="flex justify-center">
18+
<svg
19+
v-if="provider[feature.toLowerCase()] === 'supported'"
20+
class="w-6 h-6"
21+
viewBox="0 0 24 24"
22+
fill="none"
23+
xmlns="http://www.w3.org/2000/svg"
24+
>
25+
<path
26+
d="M20 6L9 17L4 12"
27+
stroke="green"
28+
stroke-width="2"
29+
stroke-linecap="round"
30+
stroke-linejoin="round"
31+
/>
32+
</svg>
33+
<svg
34+
v-else-if="provider[feature.toLowerCase()] === 'planned'"
35+
class="w-6 h-6"
36+
viewBox="0 0 24 24"
37+
fill="none"
38+
xmlns="http://www.w3.org/2000/svg"
39+
>
40+
<circle
41+
cx="12"
42+
cy="12"
43+
r="8"
44+
stroke="orange"
45+
stroke-width="2"
46+
/>
47+
</svg>
48+
<svg
49+
v-else-if="provider[feature.toLowerCase()] === 'adapted'"
50+
class="w-6 h-6"
51+
viewBox="0 0 24 24"
52+
fill="none"
53+
xmlns="http://www.w3.org/2000/svg"
54+
>
55+
<path
56+
d="M12 3v3m0 12v3M3 12h3m12 0h3"
57+
stroke="green"
58+
stroke-width="2"
59+
stroke-linecap="round"
60+
/>
61+
<circle cx="12" cy="12" r="4" stroke="green" stroke-width="2" />
62+
</svg>
63+
<svg
64+
v-else
65+
class="w-6 h-6"
66+
viewBox="0 0 24 24"
67+
fill="none"
68+
xmlns="http://www.w3.org/2000/svg"
69+
>
70+
<path
71+
d="M18 6L6 18M6 6l12 12"
72+
stroke="red"
73+
stroke-width="2"
74+
stroke-linecap="round"
75+
stroke-linejoin="round"
76+
/>
77+
</svg>
78+
</div>
79+
</td>
80+
</tr>
81+
</tbody>
82+
</table>
83+
</div>
8284

8385
<div class="flex gap-4 mt-4">
8486
<div class="flex items-center gap-2">
@@ -282,3 +284,14 @@ export default {
282284
},
283285
};
284286
</script>
287+
288+
<style>
289+
.provider-table-wrapper {
290+
overflow-x: auto;
291+
width: 100%;
292+
}
293+
.provider-table {
294+
min-width: 640px;
295+
width: 100%;
296+
}
297+
</style>

0 commit comments

Comments
 (0)