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:
ajugo 2022-07-18 16:56:06 +02:00 committed by GitHub
parent a55d6ea9de
commit 8172523f5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 2 deletions

View file

@ -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(

View file

@ -245,6 +245,7 @@
.step-controls {
display: flex;
align-items: center;
min-height: 35px;
}
.sci-inline-edit {

View file

@ -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!({