Skip to content

Commit 64235a8

Browse files
committed
Update layout
1 parent 602ac27 commit 64235a8

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

src/components/RuleTableRow.vue

+12-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
<template>
22
<tr>
33
<td class="caption text-capitalize" v-text="item.field" />
4-
<td class="caption text-capitalize text-no-wrap" v-text="condition" />
4+
<td class="caption text-capitalize" v-text="condition" />
55
<td class="caption text-truncate value" v-text="item.value" />
6-
<td class="caption text-capitalize text-no-wrap" v-text="action" />
6+
<td class="caption action">
7+
<v-icon>{{ actionIcon }}</v-icon>
8+
</td>
79
<td class="text-center">
810
<v-chip
9-
:color="item.active ? 'green' : 'red'"
11+
:color="item.active ? 'green' : 'grey'"
1012
outlined
1113
x-small
1214
v-text="item.active ? 'active' : 'inactive'"
@@ -48,10 +50,10 @@ export default class RuleTableRow extends Vue {
4850
}[this.item.condition]
4951
}
5052
51-
get action() {
53+
get actionIcon() {
5254
return {
53-
mask_message: 'Mask Message', // eslint-disable-line @typescript-eslint/camelcase
54-
hide_completely: 'Hide Completely', // eslint-disable-line @typescript-eslint/camelcase
55+
mask_message: 'mdi-marker', // eslint-disable-line @typescript-eslint/camelcase
56+
hide_completely: 'mdi-eye-off', // eslint-disable-line @typescript-eslint/camelcase
5557
}[this.item.action]
5658
}
5759
@@ -77,7 +79,10 @@ export default class RuleTableRow extends Vue {
7779

7880
<style lang="scss" scoped>
7981
.value {
80-
max-width: 200px;
82+
max-width: 150px;
8183
min-width: 96px;
8284
}
85+
.action {
86+
width: 90px;
87+
}
8388
</style>

0 commit comments

Comments
 (0)