Skip to content

Commit

Permalink
[ui] Remove main identity star icon
Browse files Browse the repository at this point in the history
Removes the star icon that marked an identity as the
main one and replaces it with a darker background for
the uuid chip.

Signed-off-by: Eva Millán <evamillan@bitergia.com>
  • Loading branch information
evamillan committed Sep 11, 2024
1 parent f5771c9 commit 33daa14
Show file tree
Hide file tree
Showing 3 changed files with 814 additions and 478 deletions.
52 changes: 28 additions & 24 deletions ui/src/components/Identity.vue
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
<template>
<v-row class="d-flex align-center flex-nowrap" no-gutters>
<v-col class="uuid d-flex align-center">
<v-tooltip open-delay="100" bottom>
<template v-slot:activator="{ props }">
<v-chip
class="text-center"
:class="{ 'mr-6': !isMain }"
v-bind="props"
variant="outlined"
@click="copy(uuid)"
@mouseenter="resetCopyText"
>
<span class="clip">{{ uuid }}</span>
<v-icon size="small" end>mdi-content-copy</v-icon>
</v-chip>
</template>
<span>{{ tooltip }}</span>
</v-tooltip>
<v-tooltip v-if="isMain" bottom>
<template v-slot:activator="{ props }">
<v-icon v-bind="props" color="secondary" size="small" end>
mdi-star
</v-icon>
</template>
<span>Main identity</span>
</v-tooltip>
<v-chip
class="text-center pr-2"
:class="{ 'v-chip--border': isMain }"
:variant="isMain ? 'tonal' : 'outlined'"
>
<span class="clip mr-1">{{ uuid }}</span>
<span v-if="isMain" class="d-sr-only">

Check warning on line 10 in ui/src/components/Identity.vue

View workflow job for this annotation

GitHub Actions / Node 18.x Python 3.8

Replace `⏎··········Main·identity⏎·······` with `·Main·identity`

Check warning on line 10 in ui/src/components/Identity.vue

View workflow job for this annotation

GitHub Actions / Node 18.x Python 3.9

Replace `⏎··········Main·identity⏎·······` with `·Main·identity`

Check warning on line 10 in ui/src/components/Identity.vue

View workflow job for this annotation

GitHub Actions / Node 20.x Python 3.8

Replace `⏎··········Main·identity⏎·······` with `·Main·identity`

Check warning on line 10 in ui/src/components/Identity.vue

View workflow job for this annotation

GitHub Actions / Node 20.x Python 3.9

Replace `⏎··········Main·identity⏎·······` with `·Main·identity`
Main identity
</span>
<v-tooltip open-delay="100" location="bottom">
<template v-slot:activator="{ props }">
<v-btn
v-bind="props"
density="comfortable"
icon="mdi-content-copy"
size="small"
variant="text"
@click="copy(uuid)"
@mouseenter="resetCopyText"
/>
</template>
<span>{{ tooltip }}</span>
</v-tooltip>
</v-chip>
</v-col>
<v-col class="ma-2" md="2">
<span>{{ name }}</span>
Expand Down Expand Up @@ -118,4 +118,8 @@ export default {
.v-tooltip__content {
font-size: 12px;
}
:deep(.v-chip--variant-tonal) .v-chip__underlay {
opacity: 0.04;
}
</style>
Loading

0 comments on commit 33daa14

Please sign in to comment.