mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-06 20:05:55 +08:00
Show status on task card
This commit is contained in:
parent
bd05214514
commit
ed5869ff8e
2 changed files with 5 additions and 2 deletions
|
@ -762,7 +762,10 @@ ul.double-line > li {
|
||||||
background-color: var(--state-color);
|
background-color: var(--state-color);
|
||||||
color: $color-white;
|
color: $color-white;
|
||||||
margin: 3px 0;
|
margin: 3px 0;
|
||||||
|
max-width: 100%;
|
||||||
|
overflow: hidden;
|
||||||
padding: 2px 8px;
|
padding: 2px 8px;
|
||||||
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,8 +37,8 @@
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= render partial: "my_modules/card_due_date_label.html.erb", locals: { my_module: my_module, format: :full_date } %>
|
<%= render partial: "my_modules/card_due_date_label.html.erb", locals: { my_module: my_module, format: :full_date } %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<div class="status-label" style="--state-color: #2DBE61">
|
<div class="status-label" style="--state-color: <%= my_module.my_module_status.color %>">
|
||||||
Completed
|
<%= my_module.my_module_status.name %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue