Skip to content

Commit 18397f6

Browse files
committed
Fix some confusion css
1 parent b3a8e3c commit 18397f6

1 file changed

Lines changed: 29 additions & 4 deletions

File tree

client/src/views/annotate/subviews/evaluate/subviews/ConfusionView.vue

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
helpLink="evaluation"
66
:columns
77
:items="rows"
8-
id="confusionTable"
98
:loading
109
sortColumn="referenceJob"
10+
class="confusion"
1111
>
1212
<template #help>
1313
<p>
@@ -46,11 +46,11 @@
4646
<!-- custom cell rendering -->
4747
<template #cell="data: Cell">
4848
<!-- header column -->
49-
<div v-if="data.column.key == 'referenceJob'">
49+
<span v-if="data.column.key == 'referenceJob'">
5050
{{ data.value }}
51-
</div>
51+
</span>
5252
<GButton v-else :disabled="!data.value" :class="cssClass(data)" @click="openModal(data)">
53-
{{ `${(data.value ? data.value.count : 0).toString().padStart(3, "&nbsp;")}` }}
53+
{{ data.value ? data.value.count : 0 }}
5454
</GButton>
5555
</template>
5656
</GTable>
@@ -191,6 +191,30 @@ function openModal(data) {
191191
</script>
192192

193193
<style scoped lang="scss">
194+
:deep(.confusion) td {
195+
padding: 0 !important;
196+
span {
197+
padding: 0 0.5rem !important;
198+
}
199+
button {
200+
width: 100%;
201+
border: 0;
202+
203+
&.plain {
204+
background-color: transparent;
205+
206+
&:hover {
207+
background-color: var(--int-light-grey) !important;
208+
}
209+
210+
&:focus {
211+
background-color: var(--int-light-grey-hover) !important;
212+
}
213+
}
214+
}
215+
}
216+
217+
/*
194218
#confusionTable :deep(td) {
195219
padding: 0 !important;
196220
margin: 0;
@@ -221,4 +245,5 @@ function openModal(data) {
221245
}
222246
}
223247
}
248+
*/
224249
</style>

0 commit comments

Comments
 (0)