From 08157cd8a1d3fe7601bcd132b6ed574b246db954 Mon Sep 17 00:00:00 2001 From: Martin Artnik Date: Tue, 12 Sep 2023 13:50:02 +0200 Subject: [PATCH] Fix displaying the 'more' link for multiline experiment description [SCI-9096] --- app/views/projects/show/_experiment_card.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/projects/show/_experiment_card.html.erb b/app/views/projects/show/_experiment_card.html.erb index c9c6d0d80..95d9daa75 100644 --- a/app/views/projects/show/_experiment_card.html.erb +++ b/app/views/projects/show/_experiment_card.html.erb @@ -74,7 +74,7 @@
<%= custom_auto_link(experiment.description, team: current_team) %>
- <% if experiment.description.present? && (experiment.description.length > Constants::EXPERIMENT_LONG_DESCRIPTION || experiment.description.count("\n") > 2) %> + <% if experiment.description.present? && (experiment.description.length > Constants::EXPERIMENT_LONG_DESCRIPTION || experiment.description.count("\n") > 1) %> <%= link_to t('experiments.card.more'), experiment_path(experiment), class: 'more-button experiment-action-link',