Skip to content

Commit

Permalink
fix see more/less bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedhamidawan committed Feb 20, 2024
1 parent 8915f6c commit 9d930a1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/src/components/Common/TextSummary.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ const text = computed(() =>

<template>
<div>
<component :is="props.component" v-if="props.oneLineSummary" class="one-line-summary">{{
props.description
}}</component>
<component :is="props.component" v-if="props.oneLineSummary" class="one-line-summary">
{{ props.description }}
</component>
<span v-else>{{ text }}</span>
<span
v-if="!noExpand && textTooLong"
v-b-tooltip.hover
class="info-icon cursor-pointer"
:title="textTooLong ? 'Show more' : 'Show less'"
:title="showDetails ? 'Show less' : 'Show more'"
role="button"
tabindex="0"
@keyup.enter="showDetails = !showDetails"
Expand Down

0 comments on commit 9d930a1

Please sign in to comment.