mirror of
https://github.com/Unleash/unleash.git
synced 2025-10-27 11:02:16 +01:00
The playground code editor had a fixed height of `150px`. This works well with the current font size, but if we're changing it, we'll end up with too much height compared to the font size. So instead, let's calculate the font size based on the current font size. Before this change (if you shrink font size):  After this change:  It still looks the same with the old font size:  Furthermore, this change uses `minHeight` instead of `height`, so that if you have more JSON data, then you won't be stuck scrolling through 6 and 6 lines. Before with lots of json:  After with lots of json:  And yes, the button doesn't respect the font size, but that's a different task. |
||
|---|---|---|
| .. | ||
| PlaygroundCodeFieldset | ||
| PlaygroundConnectionFieldset | ||
| PlaygroundForm.tsx | ||
| renderOption.tsx | ||