patchbay: fix nodes width and document how to change it

This commit is contained in:
jean-emmanuel 2019-01-05 11:55:55 +01:00
parent 3bfb896521
commit 156c066ae7
2 changed files with 8 additions and 3 deletions

View file

@ -70,6 +70,12 @@ class PatchBay extends Canvas {
]},
outputs: {type: 'array|object', value: ['output_1', 'output_2'], help: 'List of output values the inputs can connect to (see `inputs`).'},
}, [], {
css: {type: 'string', value: '', help: [
'The inputs/ouputs width can be adjusted by using the `.nodes` selector:',
'`.nodes { width: 25% }`',
]}
})
}

View file

@ -20,11 +20,10 @@
flex-direction: column;
align-items:stretch;
margin-bottom: 1rem;
min-width: 50rem;
max-width: 25%;
width: 25%;
> div {
width: 100%;
width: 100%!important;
height: 100%;
flex:1;
flex-shrink: 0;