Skip to content

Commit

Permalink
Change the color of deleted at column to red
Browse files Browse the repository at this point in the history
  • Loading branch information
sadiqkhoja committed Nov 4, 2024
1 parent 9513fd9 commit 0b74e3c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
4 changes: 3 additions & 1 deletion src/components/submission/metadata-row.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ except according to the terms contained in the LICENSE file.
</div>
</td>
<td v-if="!draft && deleted" class="state-and-actions">
<div class="col-content">
<div class="col-content col-deleted-at">
<date-time :iso="submission.__system.deletedAt"/>
</div>
<div v-if="verbs.has('submission.restore')" class="btn-group">
Expand Down Expand Up @@ -193,5 +193,7 @@ export default {
}

.delete-button .icon-trash { color: $color-danger; }

.col-deleted-at { color: $color-danger; }
}
</style>
16 changes: 10 additions & 6 deletions src/components/submission/table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ except according to the terms contained in the LICENSE file.
<th v-if="!draft">{{ $t('header.submitterName') }}</th>
<th>{{ $t('header.submissionDate') }}</th>
<th v-if="!draft && !deleted">{{ $t('header.stateAndActions') }}</th>
<th v-if="!draft && deleted">{{ $t('header.deletedAt') }}</th>
<th v-if="!draft && deleted" class="col-deleted-at">{{ $t('header.deletedAt') }}</th>
</template>
<template #head-scrolling>
<template v-if="fields != null">
Expand Down Expand Up @@ -97,12 +97,16 @@ defineExpose({ afterReview, afterDelete });
<style lang="scss">
@import '../../assets/scss/mixins';

#submission-table .table-freeze-scrolling {
th, td {
@include text-overflow-ellipsis;
max-width: 250px;
&:last-child { max-width: 325px; }
#submission-table {
.table-freeze-scrolling {
th, td {
@include text-overflow-ellipsis;
max-width: 250px;
&:last-child { max-width: 325px; }
}
}

th.col-deleted-at { color: $color-danger; }
}
</style>

Expand Down

0 comments on commit 0b74e3c

Please sign in to comment.