Merge pull request #3163 from aignatov-bio/ai-sci-5469-update-experiment-card-css

Update experiment card css [SCI-5469]
This commit is contained in:
aignatov-bio 2021-02-18 10:45:43 +01:00 committed by GitHub
commit 1cfd9dd85e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 7 deletions

View file

@ -171,6 +171,7 @@
}
.workflow-img-container {
flex-shrink: 0;
height: 3.5em;
margin: .25em 1em .25em 0;
width: 3.5em;
@ -195,6 +196,10 @@
height: 100%;
margin: 0;
padding: .25em 0;
a {
overflow: hidden;
}
}
.start-date-cell {
@ -213,13 +218,18 @@
grid-column: 6;
position: relative;
.description-text::after {
bottom: 1.5em;
right: .5em;
.description-text {
height: 4.5em;
-webkit-line-clamp: 3;
&::after {
bottom: .5em;
right: .5em;
}
}
.more-button {
bottom: 1.9em;
bottom: .5em;
}
}

View file

@ -19,9 +19,9 @@
<div class="workflow-img-container" list-render="true">
</div>
<% if experiment.archived_branch? %>
<%= link_to experiment.name, module_archive_experiment_path(experiment), title: experiment.name %>
<%= link_to experiment.name, module_archive_experiment_path(experiment), title: experiment.name, class: 'name-link' %>
<% else %>
<%= link_to experiment.name, canvas_experiment_path(experiment), title: experiment.name %>
<%= link_to experiment.name, canvas_experiment_path(experiment), title: experiment.name, class: 'name-link' %>
<% end %>
</div>
<div class="actions actions-cell table-cell">
@ -70,7 +70,7 @@
<div class="description-text">
<%= custom_auto_link(experiment.description, team: current_team) %>
</div>
<% if experiment.description.present? %>
<% if experiment.description.present? && experiment.description.length > Constants::EXPERIMENT_LONG_DESCRIPTION %>
<%= link_to t('experiments.card.more'),
experiment_path(experiment),
class: 'more-button experiment-action-link',

View file

@ -66,6 +66,8 @@ class Constants
ATWHO_REP_NAME_LIMIT = 16
# Results limited query/display elements for pages
RESULTS_PER_PAGE_LIMIT = 10
#Experiments more button appears
EXPERIMENT_LONG_DESCRIPTION = 80
#=============================================================================
# File and data memory size