fix(plugins/developer-kit): eval alert box layout (#8)
This commit is contained in:
parent
b71cc35156
commit
440c2ab1bd
1 changed files with 12 additions and 12 deletions
|
|
@ -54,7 +54,7 @@ function EvalJSAlert() {
|
||||||
try {
|
try {
|
||||||
if (!api) {
|
if (!api) {
|
||||||
alert(
|
alert(
|
||||||
'Unable to provide plugin API. Running snippet in a second...',
|
'Unable to provide plugin API. Running snippet in a second...'
|
||||||
)
|
)
|
||||||
|
|
||||||
await sleep(1000)
|
await sleep(1000)
|
||||||
|
|
@ -118,18 +118,18 @@ function EvalJSAlert() {
|
||||||
<TableRow
|
<TableRow
|
||||||
label="Inspect depth"
|
label="Inspect depth"
|
||||||
subLabel="The depth of the object to inspect."
|
subLabel="The depth of the object to inspect."
|
||||||
trailing={<Text>{inspectDepth}</Text>}
|
trailing={<Text variant="text-sm/normal">{inspectDepth}</Text>}
|
||||||
/>
|
|
||||||
<Slider
|
|
||||||
endIcon={<Text>10</Text>}
|
|
||||||
maximumValue={10}
|
|
||||||
minimumValue={1}
|
|
||||||
onValueChange={setInspectDepth}
|
|
||||||
startIcon={<Text>1</Text>}
|
|
||||||
step={1}
|
|
||||||
value={inspectDepth}
|
|
||||||
/>
|
/>
|
||||||
</TableRowGroup>
|
</TableRowGroup>
|
||||||
|
<Slider
|
||||||
|
endIcon={<Text variant="text-sm/normal">10</Text>}
|
||||||
|
maximumValue={10}
|
||||||
|
minimumValue={1}
|
||||||
|
onValueChange={setInspectDepth}
|
||||||
|
startIcon={<Text variant="text-sm/normal">1</Text>}
|
||||||
|
step={1}
|
||||||
|
value={inspectDepth}
|
||||||
|
/>
|
||||||
</Stack>
|
</Stack>
|
||||||
}
|
}
|
||||||
title="Evaluate JavaScript"
|
title="Evaluate JavaScript"
|
||||||
|
|
@ -137,4 +137,4 @@ function EvalJSAlert() {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
export default EvalJSSetting
|
export default EvalJSSetting
|
||||||
Loading…
Add table
Reference in a new issue