Merge pull request #6193 from artoscinote/ma_SCI_9096

Fix displaying the 'more' link for multiline experiment description [SCI-9096]
This commit is contained in:
Martin Artnik 2023-09-13 10:00:38 +02:00 committed by GitHub
commit 7bb5305b14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,7 +74,7 @@
<div class="description-text">
<%= custom_auto_link(experiment.description, team: current_team) %>
</div>
<% 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',