mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-27 10:08:11 +08:00
Protocol alignment fixes [SCI-6988] (#4259)
* Fix rendering protocol steps * Fix empty space for step text [SCI-6988] * Align step number and step name [SCI-6988] * Align step number and step name [SCI-6988]
This commit is contained in:
parent
a55d6ea9de
commit
8172523f5a
3 changed files with 8 additions and 2 deletions
|
@ -1,10 +1,13 @@
|
|||
.step-text-container {
|
||||
display: block;
|
||||
display: flex;
|
||||
margin-bottom: 16px;
|
||||
padding-left: var(--left-component-padding);
|
||||
position: relative;
|
||||
width: calc(100% + 16px);
|
||||
|
||||
.step-element-grip-placeholder {
|
||||
flex: 0;
|
||||
}
|
||||
|
||||
.buttons-container {
|
||||
background: linear-gradient(
|
||||
|
|
|
@ -245,6 +245,7 @@
|
|||
.step-controls {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
min-height: 35px;
|
||||
}
|
||||
|
||||
.sci-inline-edit {
|
||||
|
|
|
@ -74,7 +74,9 @@ class StepSerializer < ActiveModel::Serializer
|
|||
attachments_url: attachments_step_path(object)
|
||||
}
|
||||
|
||||
urls_list[:state_url] = toggle_step_state_step_path(object) if can_complete_my_module_steps?(object.my_module)
|
||||
if object.my_module && can_complete_my_module_steps?(object.my_module)
|
||||
urls_list[:state_url] = toggle_step_state_step_path(object)
|
||||
end
|
||||
|
||||
if can_manage_step?(object)
|
||||
urls_list.merge!({
|
||||
|
|
Loading…
Reference in a new issue