mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-08 21:06:24 +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 {
|
.step-text-container {
|
||||||
display: block;
|
display: flex;
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
padding-left: var(--left-component-padding);
|
padding-left: var(--left-component-padding);
|
||||||
position: relative;
|
position: relative;
|
||||||
width: calc(100% + 16px);
|
width: calc(100% + 16px);
|
||||||
|
|
||||||
|
.step-element-grip-placeholder {
|
||||||
|
flex: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.buttons-container {
|
.buttons-container {
|
||||||
background: linear-gradient(
|
background: linear-gradient(
|
||||||
|
|
|
@ -245,6 +245,7 @@
|
||||||
.step-controls {
|
.step-controls {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
min-height: 35px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sci-inline-edit {
|
.sci-inline-edit {
|
||||||
|
|
|
@ -74,7 +74,9 @@ class StepSerializer < ActiveModel::Serializer
|
||||||
attachments_url: attachments_step_path(object)
|
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)
|
if can_manage_step?(object)
|
||||||
urls_list.merge!({
|
urls_list.merge!({
|
||||||
|
|
Loading…
Add table
Reference in a new issue