Skip to content

Commit

Permalink
feat: add flex-grow to playground container and export type `Langua…
Browse files Browse the repository at this point in the history
…ge``
  • Loading branch information
hatemhosny committed Oct 16, 2023
1 parent 21102d6 commit 3de6805
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
24 changes: 12 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion src/sdk/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ import type {
Code,
Config,
EmbedOptions,
Language,
Playground,
UrlQueryParams,
CustomEvents,
SDKEvent,
SDKEventHandler,
} from './models';

export type { Code, Config, EmbedOptions, Playground };
export type { Code, Config, EmbedOptions, Language, Playground };

/**
* Creates a LiveCodes playground.
Expand Down Expand Up @@ -136,6 +137,7 @@ export async function createPlayground(
containerElement.style.width ||= '100%';
containerElement.style.height ||= containerElement.style.height || '300px';
containerElement.style.minHeight = '200px';
containerElement.style.flexGrow = '1';
containerElement.style.overflow ||= 'hidden';
containerElement.style.resize ||= 'vertical';
}
Expand Down

0 comments on commit 3de6805

Please sign in to comment.