Browse Source

fix: minor ux

pull/9323/head
DarkPhoenix2704 3 months ago
parent
commit
03acbd6530
  1. 7
      packages/nc-gui/components/feed/Changelog/Item.vue
  2. 13
      packages/nc-gui/components/feed/Recents/Card.vue

7
packages/nc-gui/components/feed/Changelog/Item.vue

@ -97,7 +97,12 @@ const renderedText = computedAsync(async () => {
</div> </div>
</div> </div>
<div class="flex flex-col gap-2"> <div class="flex flex-col gap-2">
<NcBadge :border="false" color="brand" class="font-semibold nc-title-badge"> <NcBadge
:border="false"
color="brand"
class="font-semibold nc-title-badge cursor-pointer"
@click="openLink(item.Url)"
>
{{ Title }} {{ Title }}
</NcBadge> </NcBadge>
<div class="prose max-w-none" v-html="renderedText"></div> <div class="prose max-w-none" v-html="renderedText"></div>

13
packages/nc-gui/components/feed/Recents/Card.vue

@ -33,7 +33,8 @@ const renderedText = computedAsync(async () => {
.process( .process(
Description.replace(/!\[.*?\]\(.*?\)/g, '') Description.replace(/!\[.*?\]\(.*?\)/g, '')
.substring(0, 300) .substring(0, 300)
.concat('...'), .concat('...')
.concat(`&nbsp; [Read more](${Url})`),
) )
}) })
</script> </script>
@ -43,7 +44,7 @@ const renderedText = computedAsync(async () => {
<div class="flex items-center justify-between px-5 py-4"> <div class="flex items-center justify-between px-5 py-4">
<div class="flex items-center gap-3"> <div class="flex items-center gap-3">
<component :is="feedIcon[source as any]" class="w-4 h-4 stroke-transparent" /> <component :is="feedIcon[source as any]" class="w-4 h-4 stroke-transparent" />
<span class="font-weight-medium leading-5"> <span class="font-weight-medium leading-5 cursor-pointer" @click="openLink(Url)">
{{ source }} {{ source }}
</span> </span>
</div> </div>
@ -74,4 +75,10 @@ const renderedText = computedAsync(async () => {
</div> </div>
</template> </template>
<style scoped lang="scss"></style> <style scoped lang="scss">
.prose {
a {
@apply !text-gray-900;
}
}
</style>

Loading…
Cancel
Save