mirror of
https://github.com/Unleash/unleash.git
synced 2025-05-03 01:18:43 +02:00
Handle cases where flags have no strategies in the playground. As part of this, also changes how we deal with the padding/margins in the playground: instead of making all but one items in the playground have to explicitly add padding, now we instead say that the only item that needs to do something is the list, which uses negative inline margins. This also has the added benefit of adding all the top-level elements (that is: that's not part of the strategy lists) inside the same container, so we can control gaps between them with flex's gaps. When you have no strategies (before):  When you have no strategies (after):  |
||
---|---|---|
.. | ||
__mocks__ | ||
assets | ||
component | ||
constants | ||
contexts | ||
hooks | ||
interfaces | ||
openapi | ||
themes | ||
types | ||
utils | ||
index.tsx | ||
setupTests.ts | ||
vite-env.d.ts |