mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-09 05:18:01 +08:00
Update experiment card css [SCI-5469]
This commit is contained in:
parent
3ebacd90fe
commit
0368579799
3 changed files with 19 additions and 7 deletions
|
@ -167,6 +167,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.workflow-img-container {
|
.workflow-img-container {
|
||||||
|
flex-shrink: 0;
|
||||||
height: 3.5em;
|
height: 3.5em;
|
||||||
margin: .25em 1em .25em 0;
|
margin: .25em 1em .25em 0;
|
||||||
width: 3.5em;
|
width: 3.5em;
|
||||||
|
@ -191,6 +192,10 @@
|
||||||
height: 100%;
|
height: 100%;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: .25em 0;
|
padding: .25em 0;
|
||||||
|
|
||||||
|
a {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.start-date-cell {
|
.start-date-cell {
|
||||||
|
@ -209,13 +214,18 @@
|
||||||
grid-column: 6;
|
grid-column: 6;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
.description-text::after {
|
.description-text {
|
||||||
bottom: 1.5em;
|
height: 4.5em;
|
||||||
|
-webkit-line-clamp: 3;
|
||||||
|
|
||||||
|
&::after {
|
||||||
|
bottom: .5em;
|
||||||
right: .5em;
|
right: .5em;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.more-button {
|
.more-button {
|
||||||
bottom: 1.9em;
|
bottom: .5em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,9 +19,9 @@
|
||||||
<div class="workflow-img-container" list-render="true">
|
<div class="workflow-img-container" list-render="true">
|
||||||
</div>
|
</div>
|
||||||
<% if experiment.archived_branch? %>
|
<% 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 %>
|
<% 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 %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<div class="actions actions-cell table-cell">
|
<div class="actions actions-cell table-cell">
|
||||||
|
@ -70,7 +70,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? %>
|
<% if experiment.description.present? && experiment.description.length > Constants::EXPERIMENT_LONG_DESCRIPTION %>
|
||||||
<%= 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',
|
||||||
|
|
|
@ -66,6 +66,8 @@ class Constants
|
||||||
ATWHO_REP_NAME_LIMIT = 16
|
ATWHO_REP_NAME_LIMIT = 16
|
||||||
# Results limited query/display elements for pages
|
# Results limited query/display elements for pages
|
||||||
RESULTS_PER_PAGE_LIMIT = 10
|
RESULTS_PER_PAGE_LIMIT = 10
|
||||||
|
#Experiments more button appears
|
||||||
|
EXPERIMENT_LONG_DESCRIPTION = 80
|
||||||
|
|
||||||
#=============================================================================
|
#=============================================================================
|
||||||
# File and data memory size
|
# File and data memory size
|
||||||
|
|
Loading…
Add table
Reference in a new issue