@@ -58,14 +58,14 @@ export default function FormBridges({ bridges, setBridges }) {
5858 } }
5959 >
6060 { __ (
61- "Manage the form's bridge chain and their submission failure policies" ,
61+ "Manage the form's bridge chain order and its submission failure policies" ,
6262 "forms-bridge"
6363 ) }
6464 </ p >
6565 < div
6666 style = { {
6767 marginTop : "2rem" ,
68- width : "460px " ,
68+ width : "680px " ,
6969 maxWidth : "80vw" ,
7070 minHeight : "125px" ,
7171 height : "calc(100% - 2rem)" ,
@@ -112,50 +112,28 @@ export default function FormBridges({ bridges, setBridges }) {
112112function BridgeStep ( { index, name, failure, setFailure, move, isLast } ) {
113113 return (
114114 < div style = { { display : "flex" , alignItems : "center" } } >
115- < p
116- style = { {
117- cursor : "pointer" ,
118- textIndent : "12px" ,
119- padding : "10px 30px 10px 0" ,
120- whiteSpace : "nowrap" ,
121- margin : 0 ,
122- overflow : "hidden" ,
123- textOverflow : "ellipsis" ,
124- position : "relative" ,
125- flex : 1 ,
126- } }
115+ < div style = { { flex : 1 } } >
116+ { index + 1 } . < b > { name } </ b >
117+ </ div >
118+ < div
119+ style = { { marginRight : "1em" , cursor : "pointer" , minWidth : "180px" } }
120+ onClick = { ( ) => setFailure ( ! failure ) }
127121 >
128122 < span
129- title = { __ ( "Allow bridge failures" , "forms-bridge" ) }
130123 aria-role = "button"
131124 size = "compact"
132125 variant = "secondary"
133- onClick = { ( ) => setFailure ( ! failure ) }
134126 style = { {
135127 fontSize : "1.25em" ,
136- marginRight : "1em" ,
137- marginLeft : "-0.7em" ,
128+ margin : "0 0.5em 0 1em" ,
138129 cursor : "pointer" ,
139130 } }
140131 __next40pxDefaultSize
141132 >
142133 { failure === false ? "🔴" : "🟢" }
143134 </ span >
144- { index + 1 } . < b > { name } </ b >
145- < span
146- style = { {
147- display : index ? "block" : "none" ,
148- position : "absolute" ,
149- top : "50%" ,
150- right : "8px" ,
151- width : "6px" ,
152- height : "6px" ,
153- borderBottom : "1px solid #d1cfcf" ,
154- borderRight : "1px solid #d1cfcf" ,
155- transform : "translate(-50%, -50%) rotate(45deg)" ,
156- } }
157- > </ span >
158- </ p >
135+ { failure === false ? "Stop on failure" : "Continue on failure" }
136+ </ div >
159137 < div
160138 style = { {
161139 display : "inline-flex" ,
0 commit comments