mirror of
https://github.com/Redocly/redoc.git
synced 2025-01-30 09:34:07 +03:00
Fix hardcoded column witdth
This commit is contained in:
parent
32ca51a3c0
commit
8c52af3829
|
@ -144,7 +144,7 @@ export default class JsonSchema extends BaseComponent {
|
|||
// TODO handle internal schemes differently
|
||||
|
||||
let names = [].slice.call(this.$element.querySelectorAll('.param-name-content'));
|
||||
let widths = [144];//names.map(el => el.offsetWidth);
|
||||
let widths = names.map(el => el.offsetWidth);
|
||||
let maxWidth = Math.max(...widths);
|
||||
if (!maxWidth) return;
|
||||
names.forEach(el => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user