Skip to content

Commit 5e2a6db

Browse files
committed
Simplifies history scroll list card description handling
Refactors to directly bind the description property, removing unnecessary template logic for annotations.
1 parent 9610798 commit 5e2a6db

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

client/src/components/History/HistoryScrollList.vue

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,6 @@ function getHistoryTitleBadges(history: HistorySummary) {
289289
</template>
290290

291291
<template v-slot:item="{ item: history }">
292-
<!-- TODO: Long history names should be truncated, esp in multiview panel -->
293292
<GCard
294293
:id="`history-${history.id}`"
295294
:data-pk="history.id"
@@ -308,15 +307,12 @@ function getHistoryTitleBadges(history: HistorySummary) {
308307
title-size="text"
309308
:title-badges="getHistoryTitleBadges(history)"
310309
:title-n-lines="2"
310+
:description="isMultiviewPanel ? undefined : history.annotation || undefined"
311311
:update-time="history.update_time"
312312
@select="historyClicked(history)"
313313
@tagClick="setFilterValue('tag', $event)"
314314
@title-click="historyClicked(history)"
315-
@click="() => historyClicked(history)">
316-
<template v-slot:description>
317-
<small v-if="!isMultiviewPanel && history.annotation" class="my-1">{{ history.annotation }}</small>
318-
</template>
319-
</GCard>
315+
@click="() => historyClicked(history)" />
320316
</template>
321317

322318
<template v-slot:footer-button-area>

0 commit comments

Comments
 (0)