Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,18 @@ const getRowProps = ({ item }: { item: CommandItem }) => {
</template>

<template v-slot:item.description="{ item }">
<div class="text-body-2 text-medium-emphasis" style="max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;">
<div
class="text-body-2 text-medium-emphasis"
style="max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;"
>
{{ item.description || '-' }}
<v-tooltip
v-if="item.description"
activator="parent"
location="top"
>
{{ item.description }}
</v-tooltip>
</div>
Comment on lines +144 to 156
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Using a native title attribute is inconsistent with the rest of the application, which utilizes Vuetify's v-tooltip component (e.g., in the actions column). v-tooltip provides a more polished user experience and consistent styling. Additionally, the tooltip should only be displayed when a description is present to avoid showing a redundant dash (-) on hover.

        <div
          class="text-body-2 text-medium-emphasis"
          style="max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;"
        >
          {{ item.description || '-' }}
          <v-tooltip
            v-if="item.description"
            activator="parent"
            location="top"
          >
            {{ item.description }}
          </v-tooltip>
        </div>

</template>

Expand Down
Loading