Skip to content

Commit af536fd

Browse files
committed
feat: highlight duplicated package version
1 parent 04ea221 commit af536fd

File tree

1 file changed

+1
-2
lines changed
  • packages/vite/src/app/components/packages

1 file changed

+1
-2
lines changed

packages/vite/src/app/components/packages/Table.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,8 @@ function toggleSizeSortType() {
6969
<div v-if="!groupView" role="cell" font-mono flex-none min-w80 py1.5 px2 ws-nowrap text-sm>
7070
<DisplayHighlightedPackageName :name="item.name" />
7171
</div>
72-
<div role="cell" flex="~ items-center" text-left flex-none font-mono py1.5 px2 text-sm min-w40 op80>
72+
<div role="cell" flex="~ items-center" text-left flex-none font-mono py1.5 px2 text-sm min-w40 op80 :class="{ 'text-primary': item.duplicated }">
7373
{{ item.version }}
74-
<!-- TODO: color this if the package is duplicated -->
7574
</div>
7675
<div role="cell" flex="~ items-center justify-end" flex-none font-mono py1.5 px2 text-sm min-w40 op80>
7776
<VMenu :delay="{ show: 200, hide: 0 }">

0 commit comments

Comments
 (0)