Fix incorrect Scalar CSS import (#10763)
CSS was loaded in a global context (full screen which might be re-used for other use cases in the future) instead of a local context. \+ small update on .env.example
This commit is contained in:
@ -16,9 +16,12 @@ const StyledContainer = styled.div`
|
||||
`;
|
||||
|
||||
const ApiReferenceReact = lazy(() =>
|
||||
import('@scalar/api-reference-react').then((module) => ({
|
||||
default: module.ApiReferenceReact,
|
||||
})),
|
||||
import('@scalar/api-reference-react').then((module) => {
|
||||
import('@scalar/api-reference-react/style.css');
|
||||
return {
|
||||
default: module.ApiReferenceReact,
|
||||
};
|
||||
}),
|
||||
);
|
||||
|
||||
type RestPlaygroundProps = {
|
||||
|
||||
Reference in New Issue
Block a user