Skip to content

Commit

Permalink
style: add small code style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
orlinmalkja committed Nov 21, 2024
1 parent 9b4a3cb commit 216f9bc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
7 changes: 3 additions & 4 deletions src/components/metadata/CopyCitation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
icon="copy"
icon-position="right"
text="Copy citation"
@click="copyContentToClipboard()"
class="t-mt-[10px] t-ml-[20px]"
@click="copyContentToClipboard()"
/>
<Message
v-if="copiedCitation"
Expand All @@ -19,8 +19,9 @@
onclick: onCloseClick,
},
}"
>Copied successfully!</Message
>
Copied successfully!
</Message>
</template>

<script setup lang="ts">
Expand Down Expand Up @@ -48,5 +49,3 @@ function onCloseClick() {
copiedCitation.value = false;
}
</script>

<style scoped></style>
16 changes: 13 additions & 3 deletions src/components/metadata/MetadataItem.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
<template>
<div>
<h4 v-if="!isLink()" class="t-font-semibold t-text-sm t-text-gray-400">
<h4
v-if="!isLink()"
class="t-font-semibold t-text-sm t-text-gray-400"
>
{{ $t(label) }}
</h4>
<MetadataLink v-if="isLink()" :url="item.key" :text="item.value" />
<MetadataValue v-else :value="item.value" />
<MetadataLink
v-if="isLink()"
:url="item.key"
:text="item.value"
/>
<MetadataValue
v-else
:value="item.value"
/>
<CopyCitation
v-if="showCopyCitation(item.key, configStore.config)"
:value="item.value"
Expand Down

0 comments on commit 216f9bc

Please sign in to comment.