Skip to content

Commit 5026f5e

Browse files
committed
feat: sidebar style, input search, table hight
1 parent 317ca32 commit 5026f5e

File tree

8 files changed

+512
-347
lines changed

8 files changed

+512
-347
lines changed

.prettierrc.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"tabWidth": 4,
2+
"tabWidth": 2,
33
"singleQuote": true,
44
"semi": true,
55
"endOfLine": "auto",

src/components/dynamic/ArrayObjectElement.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const header = computed(() => {
1818
});
1919
</script>
2020
<template>
21-
<div class="overflow-x-auto p-4">
21+
<div class="overflow-auto h-[500px] p-4">
2222
<div
2323
v-if="header.length > 0"
2424
class="table table-compact w-full"
@@ -35,7 +35,7 @@ const header = computed(() => {
3535
:key="index"
3636
class="text-left text-capitalize"
3737
>
38-
{{ item }}
38+
{{ item }}
3939
</th>
4040
</tr>
4141
</thead>

src/components/dynamic/ObjectElement.vue

+7-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,16 @@ import { select } from './index';
44
const props = defineProps(['value']);
55
</script>
66
<template>
7-
<div class="overflow-x-auto">
7+
<div class="overflow-auto">
88
<table class="table table-compact w-full text-sm">
99
<tbody>
1010
<tr v-for="(v, k) of value">
11-
<td class="text-capitalize whitespace-break-spaces w-1/5" style="min-width: 180px;">{{ String(k).replaceAll("_", " ") }}</td>
11+
<td
12+
class="text-capitalize whitespace-break-spaces w-1/5"
13+
style="min-width: 180px"
14+
>
15+
{{ String(k).replaceAll('_', ' ') }}
16+
</td>
1217
<td>
1318
<div
1419
class="overflow-hidden w-auto whitespace-normal"

0 commit comments

Comments
 (0)