File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 2222 </ main >
2323
2424 {% include 'events/includes/footer.html' %}
25+
26+ < script src ="
https://cdn.jsdelivr.net/npm/[email protected] /dist/cdn.min.js "
defer > </ script > 2527</ body >
2628
2729</ html >
Original file line number Diff line number Diff line change @@ -87,9 +87,21 @@ <h3 class="mt-1 text-xl font-semibold text-white group-hover:text-indigo-200">
8787 </ div >
8888 </ div >
8989
90- < p class ="my-3 line-clamp-4 text-sm text-slate-200/80 text-overflow-ellipsis ">
91- {{ event.description }}
92- </ p >
90+ < div x-data ="{ showFull: false } " class ="my-3 text-sm text-slate-200/80 ">
91+ < p :class ="showFull ? '' : 'line-clamp-4 text-overflow-ellipsis' ">
92+ {{ event.description }}
93+ </ p >
94+ {% if event.description|length > 160 %}
95+ < button
96+ type ="button "
97+ @click ="showFull = !showFull "
98+ class ="mt-2 text-xs text-indigo-300 underline decoration-dotted underline-offset-4 hover:text-indigo-100 transition-all "
99+ >
100+ < span x-show ="!showFull "> Show more</ span >
101+ < span x-show ="showFull "> Show less</ span >
102+ </ button >
103+ {% endif %}
104+ </ div >
93105 < hr class ="border-t border-white/10 " />
94106 < dl class ="mt-4 space-y-2 text-xs text-indigo-100/80 ">
95107 < div class ="flex items-start justify-between gap-3 ">
You can’t perform that action at this time.
0 commit comments