Skip to content

Commit

Permalink
feat: open image externally and add summary style
Browse files Browse the repository at this point in the history
  • Loading branch information
BernardoSM committed Jan 29, 2024
1 parent 421a707 commit e73de8a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 10 deletions.
20 changes: 11 additions & 9 deletions apps/app/components/content/ProseImg.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,15 @@ const refinedSrc = computed(() => {
</script>

<template>
<nuxt-img
format="webp"
quality="80"
:src="refinedSrc"
:alt="alt"
:width="width"
:height="height"
densities="x1 x1"
/>
<nuxt-link external target="_blank" :to="refinedSrc">
<nuxt-img
format="webp"
quality="80"
:src="refinedSrc"
:alt="alt"
:width="width"
:height="height"
densities="x1 x1"
/>
</nuxt-link>
</template>
14 changes: 13 additions & 1 deletion packages/assets/styles/content.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@
@apply text-zinc-800 mb-4;
}

#nuxt_content details {
@apply text-zinc-800 mb-4;
}

#nuxt_content summary {
@apply mb-2;
}

#nuxt_content ul {
@apply text-zinc-800 mb-4;
}
Expand All @@ -24,7 +32,7 @@
@apply text-zinc-800 mb-4;
}

#nuxt_content code .line {
#nuxt_content pre {
@apply px-4;
}

Expand All @@ -47,4 +55,8 @@
#nuxt_content kbd {
@apply border border-zinc-200 rounded-md py-[3px] px-[5px] text-xs bg-zinc-50;
}

#nuxt_content img {
@apply mb-4;
}
}

0 comments on commit e73de8a

Please sign in to comment.