mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 13:13:22 +08:00
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:
commit
7bb5305b14
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@
|
||||||
<div class="description-text">
|
<div class="description-text">
|
||||||
<%= custom_auto_link(experiment.description, team: current_team) %>
|
<%= custom_auto_link(experiment.description, team: current_team) %>
|
||||||
</div>
|
</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'),
|
<%= link_to t('experiments.card.more'),
|
||||||
experiment_path(experiment),
|
experiment_path(experiment),
|
||||||
class: 'more-button experiment-action-link',
|
class: 'more-button experiment-action-link',
|
||||||
|
|
Loading…
Reference in a new issue