Skip to content

Commit

Permalink
optimize classes
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasp committed Aug 29, 2023
1 parent f16d9aa commit 7483263
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions components/gallery/GalleryItemDescription.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,19 @@
<div
v-if="recipient"
class="recipient is-flex is-justify-content-space-between">
class="recipient is-flex is-justify-content-space-between is-capitalized">
<template v-if="Array.isArray(recipient) && recipient.length > 1">
<p>{{ $t('transfers.recipients') }}</p>
<ul>
<li v-for="([addr, percentile], idx) in recipient" :key="addr">
<li
v-for="([addr, percentile], idx) in recipient"
:key="addr"
class="is-flex is-flex-direction-row is-justify-content-flex-end is-align-items-center">
{{ idx + 1 }}.
<nuxt-link :to="`/${urlPrefix}/u/${addr}`" class="has-text-link">
<Identity ref="identity" :address="addr" />
</nuxt-link>
<span> ({{ percentile }}%) </span>
<span className="is-size-7">({{ percentile }}%)</span>
</li>
</ul>
</template>
Expand Down Expand Up @@ -290,17 +293,10 @@ const openLink = (link) => {
</script>
<style lang="scss">
@import '../../styles/abstracts/variables.scss';
@import '@/styles/abstracts/variables.scss';
.recipient {
text-transform: capitalize;
> ul > li {
display: flex;
flex-direction: row;
gap: 0.5rem;
align-items: center;
justify-content: flex-end;
li {
gap: 0.3rem;
> span {
font-size: 0.8rem;
@include ktheme() {
Expand Down

0 comments on commit 7483263

Please sign in to comment.