Playground improvements (#342)
Remove previews, add vs code task, open in chrome
This commit is contained in:
parent
484cfeb8ba
commit
e3a194c7dd
3 changed files with 12 additions and 5 deletions
|
@ -15,9 +15,9 @@ export const ItemSectionWithPreviews = (props: {
|
|||
return (
|
||||
<ItemContainer key={`li-${moduleName}`}>
|
||||
<ItemLink href={href}>
|
||||
<PreviewContainer>
|
||||
{/* <PreviewContainer>
|
||||
<iframe src={href} frameBorder="0" tabIndex={-1} />
|
||||
</PreviewContainer>
|
||||
</PreviewContainer> */}
|
||||
<ItemDesc>
|
||||
<h3>{moduleName}</h3>
|
||||
<p>{href}</p>
|
||||
|
@ -80,9 +80,9 @@ const ItemContainer = styled.div`
|
|||
`
|
||||
|
||||
const ItemListContainer = styled.div`
|
||||
display: flex;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
||||
gap: 1rem;
|
||||
flex-wrap: wrap;
|
||||
|
||||
margin-bottom: 2rem;
|
||||
`
|
||||
|
|
|
@ -2,7 +2,7 @@ import {spawn} from 'child_process'
|
|||
|
||||
export function openForOS(hostedAt: string) {
|
||||
const open = {
|
||||
darwin: ['open'],
|
||||
darwin: ['open', '-a', 'Google Chrome'],
|
||||
linux: ['xdg-open'],
|
||||
win32: ['cmd', '/c', 'start'],
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue