Skip to content

Commit

Permalink
set embed iframe styles to look better while loading
Browse files Browse the repository at this point in the history
  • Loading branch information
itaditya committed Apr 3, 2022
1 parent fdbcd24 commit aa32946
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/app/views/docs/docsUtils.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,8 @@
font-size: 1.125rem;
line-height: 1.5;
}

.embedWrapper iframe {
border: none;
background-color: #202327;
}
5 changes: 4 additions & 1 deletion src/app/views/docs/introduction/Overview.view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const OverviewView: Component = () => {

onMount(() => {
sdk.embedProjectId(exampleElem, 'solid-command-palette-example-lite', {
view: 'editor',
forceEmbedLayout: true,
openFile: 'src/App.tsx',
clickToLoad: true,
Expand All @@ -22,7 +23,9 @@ const OverviewView: Component = () => {
mouse around. Users can fuzzy search to find the action. If the action has a keyboard
shortcut then they can trigger it from anywhere. This increases their productivity by 10x.
</p>
<div ref={exampleElem} />
<div class={docsStyles.embedWrapper}>
<div ref={exampleElem} />
</div>
</section>
);
};
Expand Down

0 comments on commit aa32946

Please sign in to comment.